2021-05-11 13:04:38 +03:00
|
|
|
description: Explain query with permissions
|
|
|
|
url: /v1/graphql/explain
|
|
|
|
status: 200
|
|
|
|
response:
|
2022-02-21 11:52:05 +03:00
|
|
|
- field: user
|
|
|
|
sql: |-
|
|
|
|
SELECT ISNULL((SELECT [t_user1].[id] AS [id],
|
|
|
|
[t_user1].[name] AS [name],
|
|
|
|
[t_user1].[age] AS [age]
|
|
|
|
FROM [dbo].[user] AS [t_user1]
|
|
|
|
WHERE ((((([t_user1].[id]) = (CAST(CAST((N'1') AS nvarchar(max)) AS int)))
|
|
|
|
OR ((([t_user1].[id]) IS NULL)
|
|
|
|
AND ((CAST(CAST((N'1') AS nvarchar(max)) AS int)) IS NULL)))))
|
|
|
|
FOR JSON PATH, INCLUDE_NULL_VALUES), (N''+NCHAR(91)+''+NCHAR(93)+'')) AS [root]
|
2021-05-11 13:04:38 +03:00
|
|
|
query:
|
|
|
|
user:
|
|
|
|
X-Hasura-Role: user
|
2022-02-21 11:52:05 +03:00
|
|
|
X-Hasura-User-Id: '1'
|
2021-05-11 13:04:38 +03:00
|
|
|
query:
|
|
|
|
query: |
|
|
|
|
query {
|
|
|
|
user{
|
|
|
|
id
|
|
|
|
name
|
|
|
|
age
|
|
|
|
}
|
|
|
|
}
|