Skip to main content
Specifies the topic used by the query. If the query is not based on a topic, this parameter will be omitted. topic can also reference a composite topic.

Syntax

Properties

object[]
An object containing the individual parameters that make up a query view’s query definition.

Field references on a composite topic

When topic is a composite topic, fields, filters, sorts, and fill_fields accept field references in one of the following formats:
  • Shared dimension or measure name: created_date
  • Shared view field: view.field (e.g., users.state)
  • Topic-scoped field: topic.view.field (e.g., orders_topic.orders.status)
If a shorthand field matches more than one member topic and isn’t a shared view, the model fails validation with an error asking you to qualify it with a topic scope.

Examples

Query based on orders topic
Query based on a composite topic