Adding content to 102-mutations

content/graphql
syedmouaazfarrukh 2 years ago
parent 12c1773965
commit 4745811114
  1. 11
      src/roadmaps/graphql/content/102-mutations/100-what-are-mutations.md
  2. 10
      src/roadmaps/graphql/content/102-mutations/101-multiple-mutation-fields.md
  3. 9
      src/roadmaps/graphql/content/102-mutations/102-operation-name.md
  4. 9
      src/roadmaps/graphql/content/102-mutations/index.md

@ -1 +1,10 @@
# What are mutations
# What are Mutations
In GraphQL, a mutation is a type of query used to make changes to data on the server. It is used to create, update, or delete data, and is structured similarly to a query, but with a "mutation" field at the top level instead of a "query" field.
A mutation typically includes fields that specify the data to be changed and the operation to be performed (e.g. "create", "update", or "delete"). It can also include arguments to specify the specific data to be affected.
Learn more from the following resources:
- [Get started with Mutations](https://graphql.org/learn/queries/#mutations)
- [What is a GraphQL Mutation?](https://hasura.io/learn/graphql/intro-graphql/graphql-mutations/)

@ -1 +1,9 @@
# Multiple mutation fields
# Multiple Mutation Fields
In GraphQL, it is possible to perform multiple mutations in a single query by including multiple "mutation" fields in the query. This is called "batching" or "chaining" mutations.
Learn more from the following links:
- [Guide to Multiple fields in mutations](https://graphql.org/learn/queries/#multiple-fields-in-mutations)
- [Multiple fields in mutations](https://dgraph.io/docs/graphql/mutations/mutations-overview/)
- [Multiple mutations in a single GraphQL request](https://www.ibm.com/docs/en/filenet-p8-platform/5.5.x?topic=mutations-multiple-in-single-graphql-request)

@ -1 +1,8 @@
# Operation name
# Operation Name
In GraphQL, an operation name is an optional identifier that can be used to uniquely identify a query or a mutation in a document containing multiple operations. It can be used to provide more meaningful names for operations, making it easier to understand the purpose of the operation and to identify it in the event of an error.
Learn more from the following resources:
- [Intro to Operation Name](https://graphql.org/learn/queries/#operation-name)
- [How to Use GraphQL Operation Names](https://www.shopify.com/partners/blog/graphql-operation-names-and-variables)

@ -1 +1,10 @@
# Mutations
In GraphQL, a mutation is a type of query used to make changes to the data on the server, such as creating, updating, or deleting data. A mutation is structured similarly to a query, but with a "mutation" field at the top level instead of a "query" field.
The mutation includes fields that specify the data to be changed, the operation to be performed (create, update or delete) and also can include arguments to specify the specific data to be affected.
To learn more, visit the following links:
- [Getting started with Mutations](https://graphql.org/learn/queries/#mutations)
- [Tutorial - Mutations in GraphQL](https://www.youtube.com/watch?v=DU77lbBPfBI)
Loading…
Cancel
Save