Issue where the generated field of my output type is not the same as my POKO entity? #461
Replies: 1 comment
-
Answered in #462 |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
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
isMarried
correctly, 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
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.
Beta Was this translation helpful? Give feedback.
All reactions