Skip to content

Instantly share code, notes, and snippets.

View Addibro's full-sized avatar

Andreas Alme Addibro

  • Volvo Group Connected Solutions
  • Gothenburg, Sweden
View GitHub Profile
@SimeonGriggs
SimeonGriggs / parentChild.js
Last active March 4, 2022 15:43
A Structure Builder function for Parent/Child Document Relationships
// This is all explained in a complete guide at:
// https://www.sanity.io/guides/parent-child-taxonomy
import S from '@sanity/desk-tool/structure-builder'
import documentStore from 'part:@sanity/base/datastore/document'
import {map} from 'rxjs/operators'
import {FiTag} from 'react-icons/fi'
/**
* This is an example of a Structure Builder list item that: