Auto resolve Datastore @connection fields
See original GitHub issueIs your feature request related to a problem? Please describe.
When working with @connection in a relational DataStore model, I find myself having to loop through the results and manually resolve the connection fields one by one whereas with API.graphql I don’t have to.
Fetching Posts with comments @connection for examples requires me to: . Fetch all the posts . loop through the posts and for each post fetch the comments
Given the simplicity of Datastore API, the fetching is not a big deal if you have one @connection, but once you have many it starts to feel cumbersome.
Describe the solution you’d like
It would be cool if Datastore automatically resolves the @connections the way API.graphql
works.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top Results From Across the Web
DataStore - Conflict resolution - JavaScript - AWS Amplify Docs
The default resolution is called Auto Merge . This strategy allows collections to grow, and prefers server-side versions of single-field data.
Read more >Updating host names and port changes for source ...
Restart Access Server to ensure there are no users logged in. · Click Access Manager > Datastore Management. · Right-click the datastore and...
Read more >Auto Resolve Integration Runtime can't connect to SQL ...
I created a basic tier SQL database in azure portal. Now trying to create a linked service to this sql database, but it's...
Read more >Datastore Queries
A query retrieves entities from Firestore in Datastore mode that meet a specified set of conditions. The query operates on entities of a...
Read more >Resolvers - Apollo GraphQL Docs
A resolver is a function that's responsible for populating the data for a single field in your schema. It can populate that data...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s correct,
comments
currently does not get populated. The docs specify retrieving them separately by passing in the relatedpostID
in the predicate.We are currently working on a solution to retrieving related child items when querying a parent, so it will be possible to do in the near future.
@undefobj thank you