# Collections

Collections can be used to organize a variety of different objects and store them in one place.

You are not restricted to viewing only one Object Type at a time, this means you can have multiple different types within one collection.

If you are organizing your meal prep for the week, you might have a list of recipes, as well as ingredients and a shopping list.

The main types you may have could be Recipes and Ingredients.

In a Collection, you can organize all of this Types together seamlessly.

{% hint style="warning" %}
The main difference between Queries and Collections is that Queries draw Objects from your entire Graph, whereas Collections work more like a traditional database, where they start empty and you have to add Objects to them manually.
{% endhint %}

### Adding Objects

To add new Objects to a Collection, simply click on the New buttons either in the top right corner or at the bottom of a collection.

<div><figure><img src="https://2112047522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJbcKxgThRdSa4vZyLbvH%2Fuploads%2Fgit-blob-453438e7fcd55ad62c86cf687f303c55567a6e56%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure> <figure><img src="https://2112047522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJbcKxgThRdSa4vZyLbvH%2Fuploads%2Fgit-blob-67aa1ad1136628a6c94f5f2875d08f4e07ce37d3%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

To add an existing Object to a Collection while in the collection view, you can hover over the Existing object menu option under the arrow menu.

<figure><img src="https://2112047522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJbcKxgThRdSa4vZyLbvH%2Fuploads%2Fgit-blob-71b3d70927ec730801863089da1f165bdcd8412c%2Fexisting-objects-to-collection_shadow.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

To add an existing Object to a Collection outside of the collection view, you can use the Add to Collection menu option from the object menu.

<figure><img src="https://2112047522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJbcKxgThRdSa4vZyLbvH%2Fuploads%2Fgit-blob-f08963acc6f612ae3441b0db254112c0934bd499%2Fimage.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://doc.anytype.io/anytype-docs/getting-started/sets/collections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
