You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.
To make the new field available in GraphQL I understand I have to run the npm run graphql-deploy. But when I do, it never completes and is left with the following text in the terminal.
> sanity-gridsome@1.0.4 graphql-deploy
> lerna run graphql-deploy
lerna notice cli v3.16.4
lerna info Executing commandin 1 package: "npm run graphql-deploy"
What should I do to make the command to work?
The text was updated successfully, but these errors were encountered:
I just figured out I can run sanity graphql deploy in the studio-folder to deploy changes in the schema. It does not solve the inital problem but I can continue working with my schemas.
I can confirm the lerna command does not work. sanity graphql deploy needs to be run within the studio folder.. However previously deleted/cleared document ids do not get cleared despite running the command. This isnt really an issue that effects development, but it is annoying to fill up the terminal every time I run development
Terminal example:
sanity-gridsome-web: [sanity] Document with ID "1a558cde-16fb-4362-8082-634468a1cc20" has type "post", which is not declared as a document type in the GraphQL schema. Have you remembered to run `sanity graphql deploy` lately? Skipping document.
sanity-gridsome-web: [sanity] Document with ID "1b1c7451-c976-48fd-b416-73bf5a356f10" has type "author", which is not declared as a document type in the GraphQL schema. Have you remembered to run `sanity graphql deploy` lately? Skipping document.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In the post.js I have added a new field looking like this:
To make the new field available in GraphQL I understand I have to run the
npm run graphql-deploy
. But when I do, it never completes and is left with the following text in the terminal.What should I do to make the command to work?
The text was updated successfully, but these errors were encountered: