INNER CODE UNIT · Java
query
Enigmatis/graphql-java-annotations · src/main/java/graphql/annotations/AnnotationsSchemaCreator.java:81
public Builder query(Class<?> queryClass) {
this.queryObject = queryClass;
return this;
}
/**
* Set the Mutation of the graphql schema
* This method will generate a GraphQL Mutation type out of your java class using the annotations processor
*
* @param mutationClass the Mutation java class
* @return the builder after setting the mutation
*/
public Builder mutation(Class<?> mutationClass) {
this.mutationObject = mutationClass;
return this;
}
/**