# Схема объекта definition

Платформа dbt | Starter, Enterprise, Enterprise+

Объект definition позволяет запрашивать логическое состояние заданного узла проекта на основе моделей из последнего сгенерированного манифеста.

В разделе [Примеры запросов](#example-queries) показаны некоторые поля, которые можно запрашивать с помощью объекта `definition`. В разделе [Поля](#fields) приведена полная схема со всеми доступными для запроса полями.

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

Вы можете использовать `id` вашей производственной среды:

```graphql
query Example {
	environment(id: 834){ # Get the latest state of the production environment
		definition { # The logical state of a given project node given its most recent manifest generated
			models(first: 100, filter:{access:public}){ # Filter on model access (or other properties)
				edges { node {
					rawCode, # Compare to see if/how the model has changed since the last build
					jobDefinitionId, runGeneratedAt,	# When the code was last compiled or run
					contractEnforced, group, version}}} # Model governance
		}
	}
}
```

### Поля

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

# Fetching data...
