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
If I understand your problem correctly you would need to switch to response based codegen in order to solve it.
However, unfortunately "Java codegen does not support responseBased".
If you’re unable to work with fragment objects, you’ll need to either inline your fragments or remove them entirely.
Hi,
I'm trying to flatten fragments in my response models, but I'm encountering an issue where the fragments are wrapped in a nested object.
Here’s the GraphQL query I’m using:
The expected response (from a GraphQL client like Postman) is:
However, when using the Apollo Java Client, the response looks like this:
As you can see, the fields of the AuthenticationFragment are nested inside the authenticationFragment object.
How can I remove the authenticationFragment wrapper and directly flatten the fields (role, sessionGUID, token) into the login object?
I have tried enabling the flattenModels option in the plugin configuration, but it didn’t work as expected.
Any missing configuration ?
Below my configuration :
The text was updated successfully, but these errors were encountered: