Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionOperation ¶
func (*ExecutionOperation) Finish ¶
func (q *ExecutionOperation) Finish(res ExecutionOperationRes)
Finish the GraphQL query operation, along with the given results, and emit a finish event up in the operation stack.
type ExecutionOperationArgs ¶
type ExecutionOperationArgs struct { // Variables is the user-provided variables object for the query. Variables map[string]any // Query is the query that is being executed. Query string // OperationName is the user-provided operation name for the query. OperationName string }
ExecutionOperationArgs describes arguments passed to a GraphQL query operation.
func (ExecutionOperationArgs) IsArgOf ¶
func (ExecutionOperationArgs) IsArgOf(*ExecutionOperation)
type ExecutionOperationRes ¶
type ExecutionOperationRes struct { // Data is the data returned from processing the GraphQL operation. Data any // Error is the error returned by processing the GraphQL Operation, if any. Error error }
func (ExecutionOperationRes) IsResultOf ¶
func (ExecutionOperationRes) IsResultOf(*ExecutionOperation)
type RequestOperation ¶
func (*RequestOperation) Finish ¶
func (q *RequestOperation) Finish(res RequestOperationRes)
Finish the GraphQL query operation, along with the given results, and emit a finish event up in the operation stack.
type RequestOperationArgs ¶
type RequestOperationArgs struct { RawQuery string // The raw, not-yet-parsed GraphQL query OperationName string // The user-provided operation name for the query Variables map[string]any // The user-provided variables object for this request }
RequestOperationArgs describes arguments passed to a GraphQL request.
func (RequestOperationArgs) IsArgOf ¶
func (RequestOperationArgs) IsArgOf(*RequestOperation)
type RequestOperationRes ¶
type RequestOperationRes struct { // Data is the data returned from processing the GraphQL operation. Data any // Error is the error returned by processing the GraphQL Operation, if any. Error error }
func (RequestOperationRes) IsResultOf ¶
func (RequestOperationRes) IsResultOf(*RequestOperation)
type ResolveOperation ¶
func (*ResolveOperation) Finish ¶
func (q *ResolveOperation) Finish(res ResolveOperationRes)
Finish the GraphQL Field operation, along with the given results, and emit a finish event up in the operation stack.
type ResolveOperationArgs ¶
type ResolveOperationArgs struct { // TypeName is the name of the field's type TypeName string // FieldName is the name of the field FieldName string // Arguments is the arguments provided to the field resolver Arguments map[string]any // Trivial determines whether the resolution is trivial or not. Leave as false if undetermined. Trivial bool }
ResolveOperationArgs describes arguments passed to a GraphQL field operation.
func (ResolveOperationArgs) IsArgOf ¶
func (ResolveOperationArgs) IsArgOf(*ResolveOperation)
type ResolveOperationRes ¶
type ResolveOperationRes struct { // Data is the data returned from processing the GraphQL operation. Data any // Error is the error returned by processing the GraphQL Operation, if any. Error error }
func (ResolveOperationRes) IsResultOf ¶
func (ResolveOperationRes) IsResultOf(*ResolveOperation)
Click to show internal directories.
Click to hide internal directories.