amplify-cli: There are missing attributes when I am using Amplify DataStore. How do I get all attributes of the data via AWS data store?

Note: If your question is regarding the AWS Amplify Console service, please log it in the official AWS Amplify Console forum

Which Category is your question related to? Amplify Data Store

Amplify CLI Version

You can use amplify -v to check the amplify cli version on your system 4.5.0

What AWS Services are you utilizing? AWS AppSync

Provide additional details e.g. code snippets

I am unable to get other attributes (not all). Refer to the screenshot below and note that I have missing attributes title and description. How do I query properly?

  async function listPosts() {
    const posts = await DataStore.query(Post, Predicates.ALL);
    console.log(posts);
  }

Screenshot 2019-12-10 07 50 31

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

@undefobj @manueliglesias When i run which amplify, it is still pointing to the old amplify version in the ~/.nvm instead of the one at /usr/local/bin.

I’ve also cleared all node_modules, re-run the commands to test again & it works.

create-react-app testapp
npx amplify-app
npm run amplify-modelgen

Is the string still showing a lowercase “s”?