Skip to content
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

Mock Graphql is not using local data storee. #7954

Closed
jinnkhan88 opened this issue Mar 17, 2021 · 3 comments
Closed

Mock Graphql is not using local data storee. #7954

jinnkhan88 opened this issue Mar 17, 2021 · 3 comments
Labels
DataStore Related to DataStore category feature-request Request a new feature

Comments

@jinnkhan88
Copy link

jinnkhan88 commented Mar 17, 2021

Describe the bug
Local graphql client is not getting data from DataStore

To Reproduce
Steps to reproduce the behavior:

  • Create a new model.
  • After codegen use the DataStore to create a new model by using DataStore.save(new Model(input)). Models created successfully and can be read by DataStore.query(Model,Predicate.ALL) and are also synced to DynamoDB live.
  • Create mock env by using amplify mock.
  • Try the list method auto generated by amplify to list the added model.
  • Response is empty.
  • If I use the same approach on AppSync console. it gives the data stored in the model.
  • DataStore is enabled for entire API

Expected behavior

  • Local grahql client should return the data created by DataStore.

  • Device:[Macbook pro]

  • OS: [Mac OS Bigsur 11.2.3]

  • Browser [Chrome]

  • Amplify Version : 4.45.1

@jinnkhan88 jinnkhan88 added the to-be-reproduced Used in order for Amplify to reproduce said issue label Mar 17, 2021
@amhinson amhinson added the DataStore Related to DataStore category label Mar 19, 2021
@jinnkhan88
Copy link
Author

bump

@iartemiev iartemiev added feature-request Request a new feature and removed to-be-reproduced Used in order for Amplify to reproduce said issue labels Apr 5, 2021
@iartemiev
Copy link
Member

Closing, as this issue is a duplicate of aws-amplify/amplify-category-api#322 and is a feature request being tracked by the Amplify CLI team.

@github-actions
Copy link

github-actions bot commented Apr 6, 2022

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
DataStore Related to DataStore category feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

3 participants