Skip to main content

Domains

A domain groups related nodes into a business context and exposes them as reveals in Discover.

File naming convention: {name}.domain.celiq

Example

domain: payment_analysis
label: Payment Analysis
description: Revenue, payments, and customer data joined.
connection: main_postgres

nodes:
- payment
- customer
- rental

joins:
- from: payment
to: customer
type: left
on: payment.customer_id = customer.customer_id
- from: rental
to: payment
type: left
on: rental.rental_id = payment.rental_id

reveals:
- name: payment_analysis
label: Payment Analysis
primary_node: payment
description: Revenue and payment metrics
suggested_metrics:
- payment.total_revenue
- payment.avg_payment
- payment.payment_count

Top-level fields

FieldTypeDescription
domainstringInternal identifier
labelstringDisplay name
descriptionstringShown in Discover reveal picker
connectionstringOverride project connection
nodeslistNode names included in this domain
joinslistJoin definitions between nodes
revealslistCurated views

Reveals

Each reveal defines a curated view of the domain:

FieldTypeDescription
namestringUnique identifier
labelstringDisplay name in Discover
primary_nodestringThe main node queries start from
descriptionstringShown in the reveal picker
suggested_metricslistPre-selected metrics (node.metric_name)