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 |
---|---|---|
|
void |
interceptEntity(PersistentEntity entity, java.util.List<GraphQLFieldDefinition.Builder> queryFields, java.util.List<GraphQLFieldDefinition.Builder> mutationFields) Executed for each entity mapped with GraphQL. |
|
void |
interceptSchema(Builder queryType, Builder mutationType, java.util.Set<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