fun generateSubQuery(fieldDefinition: FieldDefinition, relationshipDefinitions: List<RelationshipDefinition>, context: FieldFetchingContext, dataFetchingEnvironment: DataFetchingEnvironment, onlyOnTypes: List<NodeDefinition>?): NodeSubQuery
Generates a NodeSubQuery for the provided fieldDefinition
Parameters
fieldDefinition
the field to generate the subquery for
relationshipDefinitions
the relationship path the field represents
context
provides the sub-selection set, result path and arguments
dataFetchingEnvironment
used to access the authorization permission, may not be in the context of the field represented by fieldDefinition
onlyOnTypes
if provided, types for which the subquery is active