graphql-engine/server/tests-py/queries/explain/simple_query_mssql.yaml
Abby Sassel 06bfe650f0 server/mssql: subscription test cleanup post-fix
GitOrigin-RevId: b67e577b15be3c54f869bb3497b30fb0bb53ddf0
2021-05-26 09:06:57 +00:00

24 lines
1.0 KiB
YAML

description: Explain query
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]\nOUTER\
\ APPLY (SELECT *\n 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)+''))\n\
\ WITH ([session] NVARCHAR(MAX) AS JSON,\n \
\ [namedArguments] NVARCHAR(MAX) AS JSON,\n [positionalArguments]\
\ NVARCHAR(MAX) AS JSON) AS [row]\n WHERE (1=1)) \nAS [row]\nWHERE\
\ ((1=1))\nFOR JSON PATH), '[]')"
query:
query:
query: |
query {
user{
id
name
age
}
}