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
This is because the "default stage" is DRAFT. You can alternatively update the Playground to use the Published stage. This essentially does the above for playground purposes but you should always set the stage in the query.
You can also set your access tokens to have a specific stage scoped which is what I do in 99.9% of the time.
I've published two documents on the CMS and I'm fetching + rendering them inside my Next.js application.
I want to render only those documents which are in the
published
stage, and not indraft
.When I fetch the content using GraphQL in the API playground, the
stage
attribute is always in thedraft
stage, even after I published it.GraphQL query
Output
In the specific content, it's also showing the
published
stageI would appreciate if anyone could find possible fix for this.
The text was updated successfully, but these errors were encountered: