io.github.graphglue.data.execution.NodeSubQuery.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphglue-core Show documentation
Show all versions of graphglue-core Show documentation
A library to develop annotation-based code-first GraphQL servers using GraphQL Kotlin, Spring Boot and Neo4j - excluding Spring GraphQL server dependencies
The newest version!
package io.github.graphglue.data.execution
import io.github.graphglue.definition.FieldDefinition
import io.github.graphglue.definition.NodeDefinition
/**
* Defines a SubQuery which is part of a [NodeQuery]
* Must only be evaluated if parent type is in `onlyOnTypes`
*
* @param definition definition of the queried field
* @param query the subquery
* @param onlyOnTypes a list of parent types on which this should be evaluated
* @param relationshipDefinitions defines the chain of relationships to fetch
* @param resultKeyPath the path to the key which fetches this field
*/
class NodeSubQuery(
definition: FieldDefinition,
val query: NodeQuery,
onlyOnTypes: List?,
val relationshipDefinitions: List,
resultKeyPath: String
) : NodeQueryEntry(onlyOnTypes, resultKeyPath, definition) {
/**
* The cost of the underlying [query]
*/
override val cost: Int get() = query.cost
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy