Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterBuiltins ¶
FilterBuiltins accepts and mutates an *ast.Schema to remove all built-in types and directives.
func IsBuiltinDirective ¶
IsBuiltinDirective returns true if the given directive name is one of the built-in directives specified here: https://spec.graphql.org/October2021/#sec-Type-System.Directives.Built-in-Directives
@defer is also counted as built-in, despite not appearing in the spec, because it is included in the prelude used by the GraphQL parsing library we're using here: https://github.com/vektah/gqlparser/blob/master/validator/prelude.graphql
func IsBuiltinField ¶
IsBuiltinField returns true if the given field name is a reserved name (begins with '__').
func IsBuiltinType ¶
IsBuiltinType returns true if the given type name is either a reserved name (see https://spec.graphql.org/October2021/#sec-Names.Reserved-Names) or one of the specified scalar types in the GraphQL spec here: https://spec.graphql.org/October2021/#sec-Scalars.Built-in-Scalars
Types ¶
This section is empty.