Get preview data with GraphQL #4114
Unanswered
Tobi-mmt
asked this question in
Sanity Studio Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey. I want to access my Sanity data via GraphQL. It works fine for the deployed content.
But if I want to access the preview data the documentation has no information about that. The only thing I found was examples with GROQ.
Thinks I tried:
definePreview
orusePreview
function ofnext-sanity/preview
just works for GROQ@preview
directive for the GraphQL endpointis_draft
document filter, which is not right, because I don't want to see ONLY drafts, I want the most current data INCLUDING draftsIs there a way to access preview data with the Graphql Endpoint of Sanity?
Beta Was this translation helpful? Give feedback.
All reactions