Back to Graphql Engine

Mutations Overview

docs/docs/mutations/overview.mdx

2.49.31.9 KB
Original Source

import Thumbnail from '@site/src/components/Thumbnail'; import VersionedLink from '@site/src/components/VersionedLink'; import Mutations from '@site/static/icons/features/mutations.svg';

<Mutations /> Mutations

<div className="overview-header"> <div className="overview-text"> <p> The Hasura GraphQL Engine automatically generates GraphQL mutation fields for inserting, updating, or deleting data based on your database's schema. For any tracked table, a set of mutations are generated and exposed as part of the GraphQL API. </p> <p> Just as with queries, as soon you paste in your connection string and track your tables, you're ready to start writing mutations! </p> <h4>Quick Links</h4> <ul> <li> <VersionedLink to="/mutations/quickstart">Write your first mutation in 30 seconds.</VersionedLink> </li> </ul> </div> <iframe src="https://www.youtube.com/embed/9FZkMjiBrMs" frameBorder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowFullScreen /> </div>

Using Mutations

<div className="overview-gallery"> <VersionedLink to="/mutations/postgres/insert/"> <div className="card"> <h3>Insert data</h3> <p>Learn how to insert new data into your database using a mutation.</p> </div> </VersionedLink> <VersionedLink to="/mutations/postgres/multiple-mutations/"> <div className="card"> <h3>Execute multiple mutations</h3> <p>Learn how to execute multiple mutations in a single request using a single GraphQL request.</p> </div> </VersionedLink> <VersionedLink to="/mutations/postgres/update/"> <div className="card"> <h3>Update data</h3> <p> Learn how to update data in your database using a mutation, which enables you to update data in a single row or multiple rows with one mutation. </p> </div> </VersionedLink> </div>