io.github.graphglue.data.execution.SearchQuery.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.NodeDefinition
import io.github.graphglue.model.Node
/**
* Defines a search query which fetches Nodes of type `definition`
*
* @param definition defines which type of [Node] is fetched
* @param options options for the query, e.g. pagination
* @param parts subqueries partitioned into parts
*/
class SearchQuery(
definition: NodeDefinition,
val options: SearchQueryOptions,
parts: Map
) : QueryBase(definition, parts) {
override fun copyWithParts(parts: Map): SearchQuery {
return SearchQuery(definition, options, parts)
}
}