ExplainQuery compiles a GraphQL query without executing it. Returns the compiled query, parameters, tables touched, join depth, and cache info.
(query string, vars json.RawMessage, role string)
| 2051 | // ExplainQuery compiles a GraphQL query without executing it. |
| 2052 | // Returns the compiled query, parameters, tables touched, join depth, and cache info. |
| 2053 | func (g *GraphJin) ExplainQuery(query string, vars json.RawMessage, role string) (*QueryExplanation, error) { |
| 2054 | gj, err := g.getEngine() |
| 2055 | if err != nil { |
| 2056 | return nil, err |
| 2057 | } |
| 2058 | return gj.explainQuery(query, vars, role) |
| 2059 | } |
| 2060 | |
| 2061 | // ExplainQueryForDatabase compiles a GraphQL query against a specific configured database without executing it. |
| 2062 | func (g *GraphJin) ExplainQueryForDatabase(database, query string, vars json.RawMessage, role string) (*QueryExplanation, error) { |