graphql-engine/server/tests-py/queries/explain/permissions_query_mysql.yaml
Sibi Prabakaran 9f35e660c0 server/mysql: Implement MySQL explain API
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2367
Co-authored-by: Chris Done <11019+chrisdone@users.noreply.github.com>
Co-authored-by: Aniket Deshpande <922486+aniketd@users.noreply.github.com>
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
GitOrigin-RevId: 701c84a1ca5e4ab73a229a804381a7f5281090f1
2021-10-23 11:43:25 +00:00

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
}
}