Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

Client config should specify API version #12

Open
fabien opened this issue May 2, 2021 · 1 comment
Open

Client config should specify API version #12

fabien opened this issue May 2, 2021 · 1 comment

Comments

@fabien
Copy link

fabien commented May 2, 2021

I just got this error running snippets/deleteDocsByFilter.js:

Error: Used property "delete" on versionless client - this is deprecated. Please specify API version using `withConfig` - see https://docs.sanity.io/help/studio-client-specify-api-version

I presume these snippets should be updated to use withConfig. Not a big deal, just raising this issue for completeness.

@rileyjshaw
Copy link

I just created a Pull Request to fix this: #14.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants