package
2.0.0-rc1+incompatible
Repository: https://github.com/dgraph-io/dgraph.git
Documentation: pkg.go.dev
# Functions
AppendGQLErrs builds a list of GraphQL errors from err1 and err2, if both are nil, the result is nil.
AsGQLErrors formats an error as a list of GraphQL errors.
AsSchema wraps a github.com/vektah/gqlparser/ast.Schema.
ErrorResponse formats an error as a list of GraphQL errors and builds a response with that error list and no data.
FromString builds a GraphQL Schema from input string, or returns any parsing or validation errors.
GQLWrapf takes an existing error and wraps it as a GraphQL error.
GQLWrapLocationf wraps an error as a GraphQL error and includes location information in the GraphQL error.
Introspect performs an introspection query given a query that's expected to be either __schema or __type.
NewHandler processes the input schema.
Stringify the schema as a GraphQL SDL string.
# Constants
Query/Mutation types and arg names.
Query/Mutation types and arg names.
Query/Mutation types and arg names.
Query/Mutation types and arg names.
Query/Mutation types and arg names.
Query/Mutation types and arg names.
Query/Mutation types and arg names.
Query/Mutation types and arg names.
Query/Mutation types and arg names.
Query/Mutation types and arg names.
No description provided by the author
Query/Mutation types and arg names.
No description provided by the author
Query/Mutation types and arg names.
# Interfaces
A Field is one field from an Operation.
A FieldDefinition is a field as defined in some Type in the schema.
A Handler can produce valid GraphQL and Dgraph schemas given an input of types and relationships.
A Mutation is a field (from the schema's Mutation type) from an Operation.
An Operation is a single valid GraphQL operation.
A Query is a field (from the schema's Query type) from an Operation.
Schema represents a valid GraphQL schema.
A Type is a GraphQL type like: Float, T, T! and [T!]!.
# Type aliases
MutationType is currently supported mutations.
QueryType is currently supported queries.