mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 13:02:11 +03:00
8cc358b023
GitOrigin-RevId: b67a09cbc5bb8b21857c25a0827800ca1826fa1c
28 lines
984 B
YAML
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
|
|
}
|
|
}
|