graphql-maven-plugin is a Maven Plugin for GraphQL, based on graphql-java. It accelerates the development for both the client and the server, by generating the Java code. It allows a quicker development when in contract-first approach, by avoiding to code the boilerplate code.
A graphQL field named null is not correctly transformed.
I've seen that it works correctly e.g. for fields named package
This is an example from the linear.app GraphQL schema.
generated class:
/**
* Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values.
*/
@JsonProperty("null")
@GraphQLScalar( fieldName = "null", graphQLTypeSimpleName = "Boolean", javaClass = java.lang.Boolean.class, listDepth = 0)
java.lang.Boolean null;
graphql Schema:
input NullableDateComparator {
"""
Null constraint. Matches any non-null values if the given value is false, otherwise it matches null values.
"""
null: Boolean
}
Versions tested: 1.18, 2.0
A graphQL field named
null
is not correctly transformed. I've seen that it works correctly e.g. for fields namedpackage
This is an example from the linear.app GraphQL schema.
generated class:
graphql Schema: