> For the complete documentation index, see [llms.txt](https://docs.umbraco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.umbraco.com/umbraco-compose/content-orchestration/collections.md).

# Collections

Collections are containers for logically grouping related content within an environment, and they define the root scope for GraphQL queries (with optional traversal via references and filters).

A collection in Umbraco Compose is a container for logically grouping related content. There may be one or more collections per [environment](/umbraco-compose/content-orchestration/environments.md). The content instances you ingest should be placed into an existing collection of your choice.

## Collection Considerations

When designing your content architecture in Umbraco Compose, you should keep in mind some collection principles.

Requests to the GraphQL API will always target a single collection for the root content that they return. However, it is also possible to retrieve other content in a single query if it is [referenced](/umbraco-compose/content-orchestration/referenced-content.md) from an item in the target collection.

GraphQL queries will return all items in the target collection unless they are explicitly [filtered out](/umbraco-compose/apis/graphql/filtering.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.umbraco.com/umbraco-compose/content-orchestration/collections.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
