docs: add note on permissions to certain mutations (close #5058) (#5135)

This commit is contained in:
Marion Schleifer 2020-06-24 09:01:31 +02:00 committed by GitHub
parent 0c34a92cb9
commit 2185018255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View File

@ -105,6 +105,10 @@ row object or ``null`` if the row does not exist.
}
}
.. note::
``delete_<table>_by_pk`` will **only** be available if you have select permissions on the table, as it returns the deleted row.
.. admonition:: Supported from
The ``delete_<table>_by_pk`` mutation is supported in versions ``v1.2.0``
@ -183,4 +187,4 @@ evaluates to ``true`` for all objects.
"affected_rows": 20
}
}
}
}

View File

@ -110,6 +110,10 @@ Using variables:
}
}
.. note::
``insert_<object>_one`` will **only** be available if you have select permissions on the table, as it returns the inserted row.
.. admonition:: Supported from
The ``insert_<object>_one`` mutation is supported in versions ``v1.2.0``

View File

@ -110,6 +110,10 @@ row object or ``null`` if the row does not exist.
}
}
.. note::
``update_<table>_by_pk`` will **only** be available if you have select permissions on the table, as it returns the updated row.
.. admonition:: Supported from
The ``update_<table>_by_pk`` mutation is supported in versions ``v1.2.0``