A Sanity project can contain any number of datasets, each with separate data. You will be asked to name your first dataset when running sanity init, and must supply the dataset name when running queries, e.g.:


You can also specify which dataset to use with the client library and content studio.

Enterprise Feature

Enterprise users with the custom access control feature can set custom access control rules for each dataset. Users on regular plans can only set access control rules across all datasets.

Datasets can be created and managed using the sanity command-line tool, e.g. by running sanity dataset create <name> or sanity dataset list. To see all dataset-related subcommands, run sanity dataset.

Datasets can also be created and deleted in the project's management console, under the "Datasets" tab.

Previous: OverviewNext: How Queries Work - GROQ