graphql-engine/server/tests-py/queries/explain/permissions_query_mssql.yaml

24 lines
608 B
YAML
Raw Normal View History

description: Explain query with permissions
url: /v1/graphql/explain
status: 200
response:
- field: user
sql:
"SELECT ISNULL((SELECT [t_user1].[id] AS [id],\n [t_user1].[name] AS\
\ [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), '[]')"
query:
user:
X-Hasura-Role: user
X-Hasura-User-Id: "1"
query:
query: |
query {
user{
id
name
age
}
}