Is it possible to query only some fields in a DataStore query like you can with a graphql query?

Viewed 164

With the aws-amplify JS library, you can execute a graphql query that brings back a list of objects and only a subset of their fields.

enter image description here

Can I do the same with an AWS Amplify DataStore query? Or do DataStore queries need to return all fields of the objects?

  this.users = await DataStore.query(User, Predicates.ALL)
0 Answers
Related