Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(ctx context.Context, args *ExecutionArgs) *graphql.Response
Implements the "Executing requests" section of the GraphQL specification.
Returns either a synchronous ExecutionResult (if all encountered resolvers are synchronous), or a Promise of an ExecutionResult that will eventually be resolved and never rejected.
If the arguments to this function do not result in a legal execution context, a GraphQLError will be thrown immediately explaining the invalid input.
Types ¶
type ExecutionArgs ¶
type ExecutionArgs struct { Schema *ast.Schema RawQuery string Document *ast.QueryDocument RootValue interface{} // optional VariableValues map[string]interface{} // optional OperationName string // optional FieldResolver FieldResolver // optional TypeResolver TypeResolver // optional }
type ExecutionContext ¶
type ExecutionContext struct { Schema *ast.Schema RootValue interface{} FieldResolver FieldResolver TypeResolver TypeResolver }
TODO gqlgenのほうの executionContext と互換性取るか考える
type FieldResolver ¶
Click to show internal directories.
Click to hide internal directories.