package
2.0.0-rc1+incompatible
Repository: https://github.com/dgraph-io/dgraph.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
AliasQueryCompletion is the completion steps that get run for admin queries those don't have the alias built in like Dgraph queries.
DgraphAsMutationExecutor builds a MutationExecutor.
DgraphAsQueryExecutor builds a QueryExecutor for proxying requests through dgraph.
New creates a new RequestResolver.
NewAddRewriter returns new MutationRewriter for add & update mutations.
NewDeleteRewriter returns new MutationRewriter for delete mutations..
NewMutationResolver creates a new mutation resolver.
NewQueryResolver creates a new query resolver.
NewQueryRewriter returns a new QueryRewriter.
NewResolverFactory returns a ResolverFactory that resolves requests via query/mutation rewriting and execution through Dgraph.
NewUpdateRewriter returns new MutationRewriter for add & update mutations.
NoOpQueryExecution does nothing and returns nil.
NoOpQueryRewrite does nothing and returns a nil rewriting.
StdDeleteCompletion is the completion steps that get run for add and update mutations.
StdMutationCompletion is the completion steps that get run for add and update mutations.
StdQueryCompletion is the completion steps that get run for queries.

# Structs

RequestResolver can process GraphQL requests and write GraphQL JSON responses.
A Resolved is the result of resolving a single query or mutation.
ResolverFns is a convenience struct for passing blocks of rewriters and executors.

# Interfaces

A MutationExecutor can execute a mutation and returns the assigned map, the mutated map and any errors.
A MutationResolver can resolve a single mutation.
A MutationRewriter can transform a GraphQL mutation into a Dgraph mutation and can build a Dgraph gql.GraphQuery to follow a GraphQL mutation.
A QueryExecutor can execute a gql.GraphQuery and return a result.
A QueryResolver can resolve a single query.
A QueryRewriter can build a Dgraph gql.GraphQuery from a GraphQL query,.
A ResolverFactory finds the right resolver for a query/mutation.
A ResultCompleter can take a []byte slice representing an intermediate result in resolving field and applies a completion step - for example, apply GraphQL error propagation or massaging error paths.

# Type aliases

CompletionFunc is an adapter that allows us to compose completions and build a ResultCompleter from a function.
MutationExecutionFunc is an adapter that allows us to compose mutation execution and build a MutationExecuter from a function.
MutationResolverFunc is an adapter that allows to build a MutationResolver from a function.
QueryExecutionFunc is an adapter that allows us to compose query execution and build a QueryExecuter from a function.
QueryResolverFunc is an adapter that allows to build a QueryResolver from a function.
QueryRewritingFunc is an adapter that allows us to build a QueryRewriter from a function.