apollo-client-maven-plugin: How to flatten fragments in generated models
I'm using the apollo-client-maven-plugin version 7.1.0, and 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: fragment AuthenticationFragment on SessionInfo { role sessionGUID token } mutation loginAsGuest { login( lang: { key: "FRA" } ) { ...AuthenticationFragment } } The expected response (from a GraphQL client like Postman) is: { "data": { "login": { "role": "XXX", "sessionGUID": "XXX", "token": "XXXX" } } } However, when using the Apollo Java Client, the response looks
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.