graphql-engine/server/tests-py/queries/explain/simple_query_mssql.yaml
Philip Lykke Carlsen 8cc358b023 Plc/feature/mssql logging variables
GitOrigin-RevId: b67a09cbc5bb8b21857c25a0827800ca1826fa1c
2021-05-21 11:38:23 +00:00

28 lines
984 B
YAML

description: Explain query
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]
OUTER APPLY (SELECT *
FROM OPENJSON((N''+NCHAR(123)+''+NCHAR(34)+'positionalArguments'+NCHAR(34)+''+NCHAR(58)+''+NCHAR(91)+''+NCHAR(93)+','+NCHAR(34)+'namedArguments'+NCHAR(34)+''+NCHAR(58)+''+NCHAR(123)+''+NCHAR(125)+','+NCHAR(34)+'session'+NCHAR(34)+''+NCHAR(58)+''+NCHAR(123)+''+NCHAR(125)+''+NCHAR(125)+''))
WITH ([session] NVARCHAR(MAX) AS JSON,
[namedArguments] NVARCHAR(MAX) AS JSON,
[positionalArguments] NVARCHAR(MAX) AS JSON) AS [row])
AS [row]
FOR JSON PATH), '[]')
query:
query:
query: |
query {
user{
id
name
age
}
}