interface GraphQLSchemaInterceptor
Interface to describe a class that can modify the fields and types used to build the GraphQL schema.
Type Params | Return Type | Name and description |
---|---|---|
|
abstract void |
interceptEntity(org.grails.datastore.mapping.model.PersistentEntity entity, Builder> queryFields, Builder> mutationFields) Executed for each entity mapped with GraphQL. |
|
abstract void |
interceptSchema(graphql.schema.GraphQLObjectType$Builder queryType, graphql.schema.GraphQLObjectType$Builder mutationType, java.util.Set<graphql.schema.GraphQLType> additionalTypes) Executed a single time before the schema is created. |
Executed for each entity mapped with GraphQL. The fields are mutable and their changes will be applied to the schema.
entity
- The entity being processedqueryFields
- The query fields associated with the entitymutationFields
- The query fields associated with the entityExecuted a single time before the schema is created. The types are mutable and their changes will be applied in the schema.
queryType
- The root query returnTypemutationType
- The root mutation returnType