class TopLevelQueryProvider<T : Node>(val nodeDefinition: NodeDefinition)

Provider for top level queries for specific Node types Used to generate connection like top level queries

Parameters

nodeDefinition

the definition of the Node type to query for

Type Parameters

T

the type of node for which to create the query

Constructors

Link copied to clipboard
constructor(nodeDefinition: NodeDefinition)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun getNodeQuery(@Autowired nodeQueryParser: NodeQueryParser, dataFetchingEnvironment: DataFetchingEnvironment, @Autowired nodeQueryEngine: NodeQueryEngine, @Autowired objectMapper: ObjectMapper): DataFetcherResult<Connection<T>>

Handles the query for the specific Node type

Link copied to clipboard
suspend fun getSearchQuery(@Autowired nodeQueryParser: NodeQueryParser, dataFetchingEnvironment: DataFetchingEnvironment, @Autowired nodeQueryEngine: NodeQueryEngine): List<T>

Handles the search query for the specific Node type