-
Notifications
You must be signed in to change notification settings - Fork 312
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
Update Javadoc of retrieve
in GraphQlClient
for decoding full data
#434
Comments
Generally, .execute().map(response -> response.toEntity(...)) We could consider |
Thanks @rstoyanchev Is it not normal to have multiple keys inside the data object? For ex: I ask for a book by id and along with some recommendations. (may be a bad example.) and I might want to map it to a BookWithRecommendationsDto. Others might not be interested in the recommendations and might be interested only in the book object.
It is not a blocker. Currently I could use .retrieve(""). But as you see it makes the code super ugly. |
Multiple keys is no problem. This is what you can do right now: .execute().map(response -> response.toEntity(BookWithRecommendationsDto.class)) I'll schedule this to add |
retrieve()
without arguments to GraphQlClient
to decode the full data
Thank you sir, I appreciate it. |
On closer look, since the full data cannot be a |
retrieve()
without arguments to GraphQlClient
to decode the full dataretrieve
in GraphQlClient
for decoding full data
Hi Spring Team,
It is a request / question.
Can you provide an additional overloaded method .retrieve() in the GraphQlClient's RequestSpec if the users want to access the whole data response?
We do have some work around as shown here but it would be better to have it part of RequestSpec itself.
.retrieve("")
or
execute().map(...)
The text was updated successfully, but these errors were encountered: