io.github.graphglue.data.execution.SearchQueryOptions.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
/**
* Defines how a [SearchQuery] fetches data
*
* @param filters filters to apply to the search
* @param query the search query
* @param first the maximum number of results to return
* @param skip the number of results to skip
*/
data class SearchQueryOptions(
val filters: List = emptyList(),
val query: String,
val first: Int,
val skip: Int?
) {
init {
if (first < 0) {
throw IllegalArgumentException("first must be >= 0")
}
}
}