TracksMastering Content OperationsCoursesBetween GROQ and a hard placeThe Vision Tool
Between GROQ and a hard place
Markdown Version

The Vision Tool

Log in to watch a video walkthrough of this lesson
Log in
Video thumbnail
Vision is a plugin bundled with Sanity Studio that allows you to write GROQ queries against the current Project ID and Dataset.
Log in to mark your progress for each Lesson and Task

The visionTool() plugin should already listed among your Studio's plugins in sanity.config.ts

Confirm the Vision plugin is installed
plugins: [
// ... all your other plugins
visionTool()
],

Now, you have a playground prepared to run queries against the current dataset.

Vision uses your logged-in credentials in the Studio to perform authenticated requests.

Commonly your front end client makes unauthenticated requests of a public dataset to return publicly queryable documents.

This explains why you may see private documents—like drafts—in Vision and not in your front end.

Let's GROQ.

You have 1 uncompleted task in this lesson
0 of 1