Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get JSON from generated apigen classes using Jackson library #43

Open
JustinBlandford opened this issue Sep 20, 2019 · 0 comments
Open

Comments

@JustinBlandford
Copy link

Hi,

We have used the plugin to generate Java classes from our graphql spec. The generated classes have static Builder classes within the interface for the model objects. For the generated classes, the member variables all have underscores at the start of them by default. Each class also has an Impl class where it overrides the toString method to return the JSON structure in the correct format. We are using the Builder classes to generate the data, but am struggling to get the object back in a format without the underscores i.e. as JSON that we can use to issue a GraphQl request. Could you please give some guidance on the best way to achieve this?

Regards

Justin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant