# Packages
introspection implements the spec defined in https://github.com/facebook/graphql/blob/master/spec/Section%204%20--%20Introspection.md#schema-introspection.
# Functions
AddError sends an error to the client, first passing it through the error presenter.
AddErrorf writes a formatted error to the client, first passing it through the error presenter.
BuildUnmarshalerMap returns a map of unmarshal functions of the ExecutableContext to use with the WithUnmarshalerMap function.
CoerceList applies coercion from a single value to a list.
CollectAllFields returns a slice of all GraphQL field names that were selected for the current resolver context.
CollectFields returns the set of fields from an ast.SelectionSet where all collected fields satisfy at least one of the GraphQL types passed through satisfies.
CollectFieldsCtx is just a convenient wrapper method for CollectFields.
GetExtensions returns any extensions registered in the current result context.
GetFieldErrors returns a list of errors that occurred in the given field.
Deprecated: Please update all references to GetOperationContext instead.
Deprecated: Use GetFieldContext instead.
GetStartTime should only be called by the handler package, it will be set into request context as Stats.Start.
HasFieldError returns true if the given field has already errored.
HasOperationContext checks if the given context is part of an ongoing operation
Some errors can happen outside of an operation, eg json unmarshal errors.
MarshalDuration returns the duration on ISO8601 format.
RegisterExtension allows you to add a new extension into the graphql response.
StartOperationTrace captures the current time and stores it in context.
UnmarshalDuration returns the duration from a string in ISO8601 format.
UnmarshalInputFromContext allows unmarshaling input object from a context.
WithUnmarshalerMap returns a new context with a map from input types to their unmarshaler functions.
# Structs
ExecutableSchemaMock is a mock implementation of ExecutableSchema.
IntegerError is an error type that allows users to identify errors associated with receiving an integer value that is not valid for the specific integer type designated by the API.
Omittable is a wrapper around a value that also stores whether it is set or not.
Errors are intentionally serialized first based on the advice in https://github.com/facebook/graphql/commit/7b40390d48680b15cb93e02d46ac5eb249689876#diff-757cea6edf0288677a9eea4cfc801d87R107 and https://github.com/facebook/graphql/pull/384.
# Type aliases
MapCache is the simplest implementation of a cache, because it can not evict it should only be used in tests.
Deprecated: Please update all references to OperationContext instead.
Deprecated: Use FieldContext instead.