2021-05-11 13:04:38 +03:00
|
|
|
description: Explain query with permissions
|
|
|
|
url: /v1/graphql/explain
|
|
|
|
status: 200
|
|
|
|
response:
|
|
|
|
- field: user
|
2021-05-24 12:08:52 +03:00
|
|
|
sql:
|
|
|
|
"SELECT ISNULL((SELECT [t_user1].[id] AS [id],\n [t_user1].[name] AS\
|
2021-06-01 13:04:29 +03:00
|
|
|
\ [name],\n [t_user1].[age] AS [age]\nFROM [dbo].[user] AS [t_user1]\nWHERE\
|
|
|
|
\ ((((([t_user1].[id]) = ((N'1')))\n OR ((([t_user1].[id]) IS NULL)\n \
|
|
|
|
\ AND (((N'1')) IS NULL)))))\nFOR JSON PATH), '[]')"
|
2021-05-11 13:04:38 +03:00
|
|
|
query:
|
|
|
|
user:
|
|
|
|
X-Hasura-Role: user
|
|
|
|
X-Hasura-User-Id: "1"
|
|
|
|
query:
|
|
|
|
query: |
|
|
|
|
query {
|
|
|
|
user{
|
|
|
|
id
|
|
|
|
name
|
|
|
|
age
|
|
|
|
}
|
|
|
|
}
|