mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
66f09eeaab
https://github.com/hasura/graphql-engine-mono/pull/1293 Co-authored-by: Chris Done <11019+chrisdone@users.noreply.github.com> Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com> GitOrigin-RevId: 776402dbbaf3d8166a62b1aaaf6abc7e584b3eb2
28 lines
638 B
YAML
28 lines
638 B
YAML
description: Explain query with permissions
|
|
url: /v1/graphql/explain
|
|
status: 200
|
|
response:
|
|
- 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]) = ((N'1')))
|
|
OR ((([t_user1].[id]) IS NULL)
|
|
AND (((N'1')) IS NULL)))))
|
|
FOR JSON PATH, INCLUDE_NULL_VALUES), '[]')
|
|
query:
|
|
user:
|
|
X-Hasura-Role: user
|
|
X-Hasura-User-Id: "1"
|
|
query:
|
|
query: |
|
|
query {
|
|
user{
|
|
id
|
|
name
|
|
age
|
|
}
|
|
}
|