amplify-android
amplify-android copied to clipboard
Allow configurable "walk depth" for Amplify Generated GraphQL Query
Right now, the "walk depth" for a generated GraphQL query is hard-coded to 1 level for DataStore, and 2 levels for API.
Seems like this would be a nice thing to be user-configurable, instead. I believe the CLI asks about how many levels to traverse, no? The client could honor that same value, as a configuration item.
I'm trying to migrate from mobile SDK and came into this. There's any progress with this feature request?
Hi, happy to share that we have released LazyLoading and the use of custom selection sets on Android API category. The API category will now have a depth of 0 by default for relational models. However, you can easily add an includes
block to optimistically load additional data at whatever depth is needed.
See the documentation here for more details! https://docs.amplify.aws/lib/graphqlapi/relational/q/platform/android/
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.