io.github.graphglue.graphql.schema.FieldDataFetchingEnvironment.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
package io.github.graphglue.graphql.schema
import graphql.schema.DataFetchingEnvironment
import io.github.graphglue.definition.FieldDefinition
/**
* [DataFetchingEnvironment] which also contains the [FieldDefinition] of the field being fetched
*
* @param parent the parent [DataFetchingEnvironment]
* @param fieldDefinition the [FieldDefinition] of the field being fetched
*/
class FieldDataFetchingEnvironment(
private val parent: DataFetchingEnvironment, internal val fieldDefinition: FieldDefinition
) : DataFetchingEnvironment by parent