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
GraphQLRequest builders default walk depth different in Android #681
Comments
discussed with team about this behavior
|
for now, regardless of walk depth, we should have support for querying the list of comments with a filter on post.id. Currently I don't think this is possible from DataStore or APi perspective because the coding key used like |
In DataStore this should be possible, but there's a bug in the A workaround is to use As for the |
iOS resolves this by only having a walk depth of 1 and allowing the developer to perform lazy loading on the second level: #1009 In terms of the limitation on the API, it is still there for older |
Will close this now as this is becoming outdated with lazy loading feature coming in for API |
Description
Currently when using DataStore, it will use API with the Model-to-GraphQLRequest builders to construct a valid graphql document. API can also be used directly with the builders. The current behavior is to generate only the first level of fields for of the selection set (depth of 1). When there is a connection to the model, if it is required, then it will also generate the required associated fields. When it is optional, the fields are not generated.
Issue created from comment
On Android, we have had one similar request to make selection set depth configurable. Currently, we have this hardcoded to 2 for API and 1 for DataStore, but since the CLI asks for this as an input, perhaps we could use that value instead.
Originally posted by @richardmcclellan in aws-amplify/docs#2141 (comment)
The text was updated successfully, but these errors were encountered: