Local Mocking

To mock the API, database, and storage locally, you can run the mock command:

$ amplify mock

Mock Storage endpoint is running at http://localhost:20005

GraphQL schema compiled successfully.

Edit your schema at /workspace/postagram/amplify/backend/api/postagram/schema.graphql or place .graphql files in a directory at /workspace/postagram/amplify/backend/api/postagram/schema

Creating table PostTable locally

Running GraphQL codegen

✔ Generated GraphQL operations successfully and saved at src/graphql

AppSync Mock endpoint is running at

You should see output similar to the above. If you open the AppSync Mock endpoint URL in your browser, it will load the GraphiQL editor, where you can run queries and mutations against the mock datastore.