Перейти к основному содержимому

Схема объекта applied

Объект applied позволяет запрашивать информацию о конкретной модели на основе environmentId.

В разделе Примеры запросов показаны некоторые поля, которые можно запрашивать с помощью объекта environment. Полный список доступных полей см. в разделе Поля, где представлена вся схема со всеми возможными полями для запросов.

Примеры запросов

Вы можете использовать id вашего production-окружения:

query Example {
environment(id: 834){ # Get the latest state of the production environment
applied { # The state of an executed node as it exists as an object in the database
models(first: 100){ # Pagination to ensure manageable response for large projects
edges { node {
uniqueId, name, description, rawCode, compiledCode, # Basic properties
database, schema, alias, # Table/view identifier (can also filter by)
executionInfo {executeCompletedAt, executionTime}, # Metadata from when the model was built
tests {name, executionInfo{lastRunStatus, lastRunError}}, # Latest test results
catalog {columns {name, description, type}, stats {label, value}}, # Catalog info
ancestors(types:[Source]) {name, ...on SourceAppliedStateNestedNode {freshness{maxLoadedAt, freshnessStatus}}}, # Source freshness }
children {name, resourceType}}} # Immediate dependencies in lineage
totalCount } # Number of models in the project
}
}
}

Поля

При запросе поля applied у объекта environment вы можете использовать следующие поля.

Fetching data...

Нашли ошибку?

0
Loading