# Collection does not exist

Deprecated

Collections that do not exist no longer result in an error. A warning is given instead.

> A collection queried via `getCollection()` does not exist.

## What went wrong?

[Section titled “What went wrong?”](#what-went-wrong)

When querying a collection, ensure a collection directory with the requested name exists under `src/content/`.