flâneur — a map of the web's best reading

Datasets | Sanity Docs

sanity.io · 134 words · saved by 1 readers

A dataset is a collection of JSON documents that can be of different types and have references to each other. You can think of a dataset as a “database” where all of your content is stored, whereas the document‘s types would constitute “tables”. Using GROQ or GraphQL you can always query and join data across documents within a dataset, but not across them. Typical applications of datasets are: You can also specify which dataset to use with the client libraries (configured when initializing a client) and Sanity Studio (configured in sanity.config.ts or using environment variables). Datasets can be created and managed using the sanity command-line tool, e.g. by running sanity dataset create 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. A dataset name must be between 1 and 64 characters long. It may only contain lowercase characters (a-z), nu

Managing multiple datasets within a project Copy article Copy article A dataset is a collection of JSON documents that can be of different types and have references to each other. You can think of a dataset as a “database” where all of your content is stored, whereas the document‘s types would constitute “tables”. Using GROQ or GraphQL you can always query and join data across documents within a dataset, but not across them. Typical applications of datasets are: Operate with different environments for testing, staging, and production. Localization and segmentation across all content types. Dif

Explore this link on the map →

related reading