How to use the @aws-amplify/ function in @aws-amplify/datastore

To help you get started, we’ve selected a few @aws-amplify/datastore examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dabit3 / amplify-datastore-example / src / App.js View on Github external
async function create() {
    const postData = {...form, status: PostStatus.INACTIVE}
      new Post(postData)
    console.log('successfully created new post')
    updateForm({ title: '', rating: '' })
  useEffect(() => {
github sebsto / amplify-datastore-js-e2e / src / App.js View on Github external
function onCreate() {
    new Post({
      title: `New title ${}`,
      rating: (function getRandomInt(min, max) {
        min = Math.ceil(min);
        max = Math.floor(max);
        return Math.floor(Math.random() * (max - min)) + min; //The maximum is exclusive and the minimum is inclusive
      })(1, 7),
      status: PostStatus.ACTIVE


AppSyncLocal support for aws-amplify

Latest version published 19 hours ago

Package Health Score

98 / 100
Full package analysis

Similar packages