All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.graphglue.data.execution.SearchQueryOptions.kt Maven / Gradle / Ivy

Go to download

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")
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy