← API reference
Query / reporting · aiml

describeQuerySchema

Analyze a MicroSQL query and return the inferred result schema (column names, data types) without executing it. Returns validation errors with typo-correcting suggestions if the query is invalid. Validates only against tables the caller can list.

Arguments

Query to analyze

Returns QuerySchemaPayload!

Scalar fields at a glance

validBoolean!
namedParameters[String!]!
↗ View the complete QuerySchemaPayload type

Explore in a view

AI and MLReporting
View exact SDL
"""
Analyze a MicroSQL query and return the inferred result schema (column names, data types) without executing it. Returns validation errors with typo-correcting suggestions if the query is invalid. Validates only against tables the caller can list.
"""
describeQuerySchema(
  """Query to analyze"""
  input: DescribeQuerySchemaInput!
): QuerySchemaPayload! @topic(names: ["reporting", "aiml"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.