docs: add permissions to config v2 metadata format

GITHUB_PR_NUMBER: 6314
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6314

Co-authored-by: Funmilayo E. Olaiya <35759534+codeliezel@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: 43722c20992a4ef0520ee69f3138a97e988f8412
This commit is contained in:
hasura-bot 2021-03-09 17:28:19 +05:30
parent 36a6c36f6d
commit 35168876ec

View File

@ -218,6 +218,24 @@ The ``tables.yaml`` file contains metadata related to :ref:`tables<schema_tables
- table:
schema: public
name: authors
insert_permissions:
- role: user
permission:
check:
id:
_eq: X-Hasura-User-Id
columns:
- name
backend_only: false
select_permissions:
- role: user
permission:
columns:
- id
- name
filter:
id:
_eq: X-Hasura-User-Id
array_relationships:
- name: books
using:
@ -246,6 +264,25 @@ The ``tables.yaml`` file contains metadata related to :ref:`tables<schema_tables
- table:
schema: public
name: books
insert_permissions:
- role: user
permission:
check:
id:
_eq: X-Hasura-User-Id
columns:
- author_id
- name
backend_only: false
select_permissions:
- role: user
permission:
columns:
- id
- name
filter:
id:
_eq: X-Hasura-User-Id
object_relationships:
- name: author
using: