From d21cfca24053838d8898f9606ae03c9a40412c64 Mon Sep 17 00:00:00 2001 From: Kim Date: Thu, 22 Dec 2022 22:03:26 +0100 Subject: [PATCH] Point to the right GraphQL spec (#250) --- gqlerror/error.go | 2 +- validator/schema.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gqlerror/error.go b/gqlerror/error.go index 2620d593..79e9e0d1 100644 --- a/gqlerror/error.go +++ b/gqlerror/error.go @@ -9,7 +9,7 @@ import ( "github.com/vektah/gqlparser/v2/ast" ) -// Error is the standard graphql error type described in https://facebook.github.io/graphql/draft/#sec-Errors +// Error is the standard graphql error type described in https://spec.graphql.org/draft/#sec-Errors type Error struct { err error `json:"-"` Message string `json:"message"` diff --git a/validator/schema.go b/validator/schema.go index 6902dc74..5e8bace7 100644 --- a/validator/schema.go +++ b/validator/schema.go @@ -379,7 +379,7 @@ func validateDirectives(schema *Schema, dirs DirectiveList, location DirectiveLo func validateImplements(schema *Schema, def *Definition, intfName string) *gqlerror.Error { // see validation rules at the bottom of - // https://facebook.github.io/graphql/October2021/#sec-Objects + // https://spec.graphql.org/October2021/#sec-Objects intf := schema.Types[intfName] if intf == nil { return gqlerror.ErrorPosf(def.Position, "Undefined type %s.", strconv.Quote(intfName))