Function: collectSubfieldsFromContext()
collectSubfieldsFromContext(
exeContext,returnType,fieldNodes):FieldsAndPatches
Defined in: packages/executor/src/execution/execute.ts:196
Internal
A memoized collection of relevant subfields with regard to the return type. Memoizing ensures the subfields are not repeatedly calculated, which saves overhead when resolving lists of values.
When the document has no variable-conditional @skip / @include /
@defer, results are shared across executions for the same document AST.
Parameters
exeContext
returnType
GraphQLObjectType
fieldNodes
FieldNode[]