mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
21 lines
438 B
YAML
21 lines
438 B
YAML
|
description: Explain query with permissions
|
||
|
url: /v1/graphql/explain
|
||
|
status: 200
|
||
|
response:
|
||
|
- field: hasura_user
|
||
|
sql: |-
|
||
|
SELECT t_user1.id AS id,"\n "t_user1.name AS name,"\n "t_user1.age AS age"\n"FROM hasura.user AS t_user1
|
||
|
query:
|
||
|
hasura_user:
|
||
|
X-Hasura-Role: user
|
||
|
X-Hasura-User-Id: "1"
|
||
|
query:
|
||
|
query: |
|
||
|
query {
|
||
|
hasura_user{
|
||
|
id
|
||
|
name
|
||
|
age
|
||
|
}
|
||
|
}
|