graphql-engine/server/tests-py/queries/explain/permissions_query_mssql.yaml
Aniket Deshpande 66f09eeaab MSSQL nodes aggregates & inherited roles
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
2021-07-08 20:50:09 +00:00

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