We have added two new features for Advanced Dataset Management for projects on the Enterprise plan. You can now initate dataset copying directly in the cloud and create aliases to hot swap between datasets. This will enhance development and CI workflows.
When deploying new GraphQL APIs for your datasets, you will now get an allDocument field which allows you to query for all documents matching a filter. You will still need to use fragments with type checks to access fields based on the type, of course:
{
allDocument(where: {
_createdAt: { gte: "2020-12-01T14:33:00Z"}
}) {
# `_id` is defined on the `Document` interface,
# so it does not require a type assertion
_id
# Unique fields on the `post` type
...on Post {
title
category
}
}
}
If you already have a GraphQL API deployed, you will have to specify that you want to use the new generation of GraphQL schema by using sanity graphql deploy --generation gen3. The reason for this is a minor breaking change: the DocumentFilter type now represents the filters that can be applied in the allDocument query, mirroring other type filters (PostFilter, AuthorFilter), while the type previously called DocumentFilter has been renamed to Sanity_DocumentFilter.
Other features
We now prevent crawlers/search engines from indexing studios
🐛 Notable bugfixes
Fix bug where color input would crash when selecting color (thanks @obelmont!)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot will not automatically merge this PR because this dependency is pre-1.0.0.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps @sanity/cli from 0.146.0 to 2.1.0.
Release notes
Sourced from @sanity/cli's releases.
Commits
1521783
v2.1.0f7e3830
Add tsbuildinfo files to .npmignore46a9c17
[chore] Fix issue with double monorepo detection/config override6265c4d
[chore] Remove unused filebb76931
[chore] Lazy require tsconfig when resolving monorepo aliasesf2600c8
[core] Add a new GraphQL generation 'gen3' for querying all documents652fc75
[core] Revert changes to GraphQL 'gen2'as they were breakingc6cc389
[core] Explicitly define which types to query for in allDocument query04821bf
[core] Do not include document interface as type38b2434
[core] Add full support for querying DocumentDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot will not automatically merge this PR because this dependency is pre-1.0.0.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)