Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/executorsrcfunctionscollectFieldsFromContext

Function: collectFieldsFromContext()

collectFieldsFromContext(exeContext, runtimeType, selectionSet): FieldsAndPatches

Defined in: packages/executor/src/execution/execute.ts:169 

Internal

Root/selection-set field collection with optional cross-execution memoization when the document has no variable-conditional @skip / @include / @defer.

Parameters

exeContext

ExecutionContext

runtimeType

GraphQLObjectType

selectionSet

SelectionSetNode

Returns

FieldsAndPatches