Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mobilequickie/a616392e5819cdf5f0bf4c63bca7781c to your computer and use it in GitHub Desktop.
Save mobilequickie/a616392e5819cdf5f0bf4c63bca7781c to your computer and use it in GitHub Desktop.
A sample mutation for creating a new customer in the Customers table of an Aurora Serverless Data API enabled database as a datastore for AWS AppSync
mutation CreateCustomer {
createCustomers(createCustomersInput: {
id: 2,
name: "Customer Two",
phone: "206-555-xxxx",
email: "cust@customertwo.com"
}) {
id
name
phone
email
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment