graphql-engine/server/tests-py/queries/explain/permissions_query_mssql.yaml
Evie Ciobanu aff1ebb060 server: add more MSSQL tests to CI
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3129
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
GitOrigin-RevId: 1e8fc7ed2426fc07f64ca042c9a0be005cc9d052
2021-12-15 10:44:09 +00:00

28 lines
710 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]) = (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), '[]')
query:
user:
X-Hasura-Role: user
X-Hasura-User-Id: "1"
query:
query: |
query {
user{
id
name
age
}
}