2018-07-20 11:19:06 +03:00
|
|
|
description: Create relevant permissions
|
|
|
|
url: /v1/query
|
|
|
|
status: 200
|
|
|
|
query:
|
2018-08-17 17:44:43 +03:00
|
|
|
type: bulk
|
2018-07-20 11:19:06 +03:00
|
|
|
args:
|
2018-08-17 17:44:43 +03:00
|
|
|
- type: create_select_permission
|
|
|
|
args:
|
|
|
|
table: article
|
|
|
|
role: user
|
|
|
|
permission:
|
|
|
|
columns: '*'
|
|
|
|
filter:
|
|
|
|
$or:
|
|
|
|
- author_id: X-HASURA-USER-ID
|
|
|
|
- is_published: true
|
|
|
|
- type: create_select_permission
|
|
|
|
args:
|
|
|
|
table: author
|
|
|
|
role: user
|
|
|
|
permission:
|
|
|
|
columns: '*'
|
|
|
|
filter:
|
|
|
|
id: X-HASURA-USER-ID
|
|
|
|
- type: create_insert_permission
|
|
|
|
args:
|
|
|
|
table: author
|
|
|
|
role: user
|
|
|
|
permission:
|
|
|
|
check:
|
|
|
|
id: X-HASURA-USER-ID
|