Mutations

In this section

About mutations

Every GraphQL schema has a root type for both queries and mutations. The mutation type defines GraphQL operations that change data on the server. It is analogous to performing HTTP verbs such as POST, PATCH, and DELETE.

{% for name, field in reference.mutation.fields|dictsort %}

{{ name }}

Type: {{ field.type|string }}

{{ field.description|default('', True)|markdown|safe }}
{% if field.args %}

Arguments

{% for arg_name, arg in field.args.items() %} {% endfor %}
Name Description

{{ arg_name }} ({{ arg.type|string }})

{{ arg.description|default('', True)|markdown|safe }}

{% endif %}

Return fields

{% for return_name, return in field.unwrapped_type.fields.items() %} {% endfor %}
Name Description

{{ return_name }} ({{ return.type|string }})

{{ return.description|default('', True)|markdown|safe }}


{% endfor %}