Skip to content

Instantly share code, notes, and snippets.

@Wolfr Wolfr/film.js
Created Dec 30, 2018

What would you like to do?
export default {
title: "Film",
name: "film",
type: "document",
fields: [
title: "Name",
name: "name",
type: "string",
title: "IMDB Link",
name: "imdbLink",
type: "url",
title: "Trailer link",
name: "trailerLink",
type: "url",
title: "Image",
name: "image",
type: "image",
// First, we must import the schema creator
import createSchema from 'part:@sanity/base/schema-creator'
// Then import schema types from any plugins that might expose them
import schemaTypes from 'all:part:@sanity/base/schema-type'
// Then we give our schema to the builder and provide the result to Sanity
export default createSchema({
name: 'default',
types: schemaTypes.concat([
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.