amplify-android icon indicating copy to clipboard operation
amplify-android copied to clipboard

Allow configurable "walk depth" for Amplify Generated GraphQL Query

Open KayIlory opened this issue 4 years ago • 1 comments

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.

KayIlory avatar Jun 15 '20 18:06 KayIlory

I'm trying to migrate from mobile SDK and came into this. There's any progress with this feature request?

watanabethais avatar Feb 19 '21 11:02 watanabethais

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/

tylerjroach avatar Oct 20 '23 15:10 tylerjroach

⚠️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.

github-actions[bot] avatar Oct 20 '23 15:10 github-actions[bot]