Content Graph View

Official(made by Sanity team)

By Marius Lundgård & Bryan Robinson

A tool for Sanity Studio to graph your content and see changes in real-time.

Sanity

Graph View Plugin

A tool for Sanity Studio to graph your content and see changes in real-time.

Screengrab of the Graph tool

Wonder how a visualization of your dataset will look? How many authors do you have? How many items have they worked on? And are currently working on! Edits and changes are shown in real-time!

Explore your data with this plugin, seek out strange corners and data types, boldly go where you could not before!

# In your Sanity Studio repository:
sanity install graph-view

# Start the Studio
sanity start

Configuration

Edit ./config/graph-view.json:

{
  "query": "*[_type == 'a' || _type == 'b']"
}

For references to turn into graph edges, the entire document must be fetched, but you can also selectively filter what references will be included. For example:

{
  "query": "*[_type == 'a' || _type == 'b']{ 'refs': [author._ref, publisher._ref] }"
}

Contributing

If you want to take part in developing this plugin, then look for planned features in the list of issues and reach out to us in the Sanity Community.

git clone git@github.com:sanity-io/sanity-plugin-graph-view.git
cd sanity-plugin-graph-view
yarn
yarn link

# In a development Studio directory:
yarn link sanity-plugin-graph-view

# Lint your code before committing
yarn lint

Get help in the Sanity Community

Slack Community Button

Join Sanity’s developer community or ping us on twitter.

License

MIT © Sanity.io

Other plugins by authors