Skip to content

Instantly share code, notes, and snippets.

@thefln
Created December 6, 2017 03:04
Show Gist options
  • Select an option

  • Save thefln/762ac5bd2fcf9f9cda011e7078300ae7 to your computer and use it in GitHub Desktop.

Select an option

Save thefln/762ac5bd2fcf9f9cda011e7078300ae7 to your computer and use it in GitHub Desktop.
schema-refactor.js
const createSchema = require('part:@sanity/base/schema-creator')
const schemaTypes = require('all:part:@sanity/base/schema-type')
import product from './product'
module.exports = createSchema({
name: 'default',
types: schemaTypes.concat([product])
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment