aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.42k stars 2.12k forks source link

Get Data dynamically as per the provided user Id field of Data Model Table #9774

Open jaythakor-ai opened 2 years ago

jaythakor-ai commented 2 years ago

Is this related to a new or existing framework?

React

Is this related to a new or existing API?

GraphQL API, DataStore

Is this related to another service?

DynamoDb

Describe the feature you'd like to request

Currently, the collection in the Amplify Studio provides all the records from the DynamoDb table. I would like to get the data based on the user Id field from the DynamoDb Table. I am working on the Admin dashboard and I suppose to get the data related to the particular user, not the whole table's data.

Describe the solution you'd like

There should be a way in the Amplify studio collection that we can pass the Unique User Id and the collection will be created by that User specific. The collection should not create from all the records on the table.

Describe alternatives you've considered

To get the data as per the User id from the table, May I have to handle the API and need to pass the id in the parameter and other things. But If the GraphQL API perform by the Collection, if we pass the Id then It will be appreciated.

Additional context

No response

Is this something that you'd be interested in working on?

jaythakor-ai commented 2 years ago

@chrisbonifacio any updates on this?