Skip to content

Commit

Permalink
synthesize a position for custom directives to avoid panic during for…
Browse files Browse the repository at this point in the history
…matting
  • Loading branch information
benweint committed Jun 4, 2024
1 parent 1f03915 commit 58b2d7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/introspection/toast.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ func responseToAst(s *Schema) (*ast.Schema, error) {
Arguments: makeArgumentDefinitionList(dir.Args),
Locations: locations,
IsRepeatable: dir.IsRepeatable,
Position: &ast.Position{
Src: &ast.Source{
BuiltIn: false,
},
},
}
}

Expand Down

0 comments on commit 58b2d7a

Please sign in to comment.