From ed46e5a4646634fc16cb07c3b8db389542cc8847 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Sat, 22 Jul 2023 07:37:21 +0300 Subject: [PATCH] update links to GraphQL specification User newer and more consistent links. GitHub-Pull-Request: https://github.com/shurcooL/graphql/pull/113 --- graphql.go | 2 +- query.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphql.go b/graphql.go index 38e92b7..b11bfae 100644 --- a/graphql.go +++ b/graphql.go @@ -104,7 +104,7 @@ func (c *Client) do(ctx context.Context, op operationType, v any, variables map[ // errors represents the "errors" array in a response from a GraphQL server. // If returned via error interface, the slice is expected to contain at least 1 element. // -// Specification: https://facebook.github.io/graphql/#sec-Errors. +// Specification: https://spec.graphql.org/October2021/#sec-Errors. type errors []struct { Message string Locations []struct { diff --git a/query.go b/query.go index 6b1dd80..cc5954a 100644 --- a/query.go +++ b/query.go @@ -46,7 +46,7 @@ func queryArguments(variables map[string]any) string { writeArgumentType(&buf, reflect.TypeOf(variables[k]), true) // Don't insert a comma here. // Commas in GraphQL are insignificant, and we want minified output. - // See https://facebook.github.io/graphql/October2016/#sec-Insignificant-Commas. + // See https://spec.graphql.org/October2021/#sec-Insignificant-Commas. } return buf.String() }