You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getter methods for boolean types generated for both classes and interfaces, mirrored from the GraphQL schema are prefixed with get, however, the common practice is to have these prefixed with 'is'.
For instance, getter method for the boolean property active should be generated as isActive() and not getActive() as illustrated in the code snipped below.
Currently generated as:
public class Animal {
String getName();
String getType();
Boolean getAdopted();
}
Should be generated like this:
public class Animal {
String getName();
String getType();
Boolean isAdopted();
}
The text was updated successfully, but these errors were encountered:
Yes, you are right Boolean should be generated with ‘get’ and the primitive type boolean should be with ‘is’. In the docs, there is listed that when a property is non-nullable it should be generated with primitive types. In this case the non-nullable boolean property should be generated with ‘is’
Getter methods for boolean types generated for both classes and interfaces, mirrored from the GraphQL schema are prefixed with get, however, the common practice is to have these prefixed with 'is'.
For instance, getter method for the boolean property active should be generated as isActive() and not getActive() as illustrated in the code snipped below.
Currently generated as:
Should be generated like this:
The text was updated successfully, but these errors were encountered: