Skip to content

Commit

Permalink
Point to the right GraphQL spec (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khyme authored Dec 22, 2022
1 parent aed070f commit d21cfca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gqlerror/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion validator/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d21cfca

Please sign in to comment.