Documentation ¶
Index ¶
- Constants
- func AddIntrospectionToSchema(schema *graphql.Schema)
- func BareIntrospectionSchema(schema *graphql.Schema) *graphql.Schema
- func ComputeSchemaJSON(schemaBuilderSchema schemabuilder.Schema) ([]byte, error)
- func RunIntrospectionQuery(schema *graphql.Schema) ([]byte, error)
- type Directive
- type DirectiveLocation
- type EnumValue
- type InputValue
- type Schema
- type Type
- type TypeKind
Constants ¶
View Source
const ( QUERY DirectiveLocation = "QUERY" MUTATION = "MUTATION" FIELD = "FIELD" FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION" FRAGMENT_SPREAD = "FRAGMENT_SPREAD" INLINE_FRAGMENT = "INLINE_FRAGMENT" )
View Source
const ( SCALAR TypeKind = "SCALAR" OBJECT = "OBJECT" INTERFACE = "INTERFACE" UNION = "UNION" ENUM = "ENUM" INPUT_OBJECT = "INPUT_OBJECT" LIST = "LIST" NON_NULL = "NON_NULL" )
View Source
const IntrospectionQuery = `` /* 1019-byte string literal not displayed */
Copied from https://github.com/graphql/graphiql/blob/master/src/utility/introspectionQueries.js
Variables ¶
This section is empty.
Functions ¶
func BareIntrospectionSchema ¶ added in v0.5.1
func ComputeSchemaJSON ¶
func ComputeSchemaJSON(schemaBuilderSchema schemabuilder.Schema) ([]byte, error)
ComputeSchemaJSON returns the result of executing a GraphQL introspection query.
Types ¶
type Directive ¶
type Directive struct { Name string Description string Locations []DirectiveLocation Args []InputValue }
type DirectiveLocation ¶
type DirectiveLocation string
type InputValue ¶
Click to show internal directories.
Click to hide internal directories.