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
As you can see, the input type generates the property name for isMarried correctly, however, I expected the same for the Person type that is being returned as the output type. Instead, it is returning as married.
I am using Jackson as my JSON serializer, and adding @JsonProperty("isMarried") to the field in the data class doesn't seem to work.
How can I enforce that the output type's isMarried property generates correctly to be the same as that of what is defined in the Person data class?
Any assistance in this matter will be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I would like to request some guidance with an issue I am experiencing.
I am making use of the SPQR Spring Boot Starter v0.0.7 within my Kotlin Spring Boot application.
I have a Person data class defined as follows:
I have a @GraphQLMutation endpoint to update the Person
The GraphQL schema types generated are as follows:
As you can see, the input type generates the property name for
isMarriedcorrectly, however, I expected the same for the Person type that is being returned as the output type. Instead, it is returning asmarried.I am using Jackson as my JSON serializer, and adding
@JsonProperty("isMarried")to the field in the data class doesn't seem to work.How can I enforce that the output type's
isMarriedproperty generates correctly to be the same as that of what is defined in the Person data class?Any assistance in this matter will be greatly appreciated.
All reactions