Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

create relationship between schema in sanity

use schema type reference to create relationships between schemas.

{
        title: 'Project',
        name: 'projectLink',
        type: 'reference',
        to: {
            type: 'Projects' //references another schema called Projects
        }
    }
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to push array 
Javascript :: odd even condition 
Javascript :: header react native 
Javascript :: JQuery Autocomplete no result found 
Javascript :: merge two strings with alternate characters javascript 
Javascript :: vuejs copy to clipboard 
Javascript :: get max number in array 
Javascript :: disable textbox on plumsail 
Javascript :: post request enabled in express js 
Javascript :: find the height of space above element using javascript 
Javascript :: Fill in to get the value of the form field with id="name" and set it as the text of the paragraph with id="txt". 
Javascript :: js intellisence not working 
Javascript :: angular material dialog close pass data 
Javascript :: display object in array 
Javascript :: javascript rest parameters vs spread operator 
Javascript :: js nepali phone number validation regex 
Javascript :: line break in javascript in notification 
Javascript :: how to join kak in javascript 
Javascript :: repeat network call n times in js 
Javascript :: scrape html table javascript 
Javascript :: webpack test js or jsx 
Javascript :: leaflet core 
Javascript :: Select First Element querySelector 
Javascript :: how to build with a specific .env file node 
Javascript :: ionicActionSheet decorator example 
Javascript :: $_GET data using javascript 
Javascript :: how to give placeholder in input type date in angular 
Javascript :: split by space capital letter or underscore javascript 
Javascript :: if else react render in jsc 
Javascript :: check if alpine js is loaded 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =