mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
06bfe650f0
GitOrigin-RevId: b67e577b15be3c54f869bb3497b30fb0bb53ddf0
24 lines
1.0 KiB
YAML
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
|
|
}
|
|
}
|