Skip to content

Latest commit

 

History

History
 
 

using-union-types

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Working with union types in GraphCMS

Join our Slack

GraphCMS supports polymorphic relations, also known as GraphQL union types. This example demonstrates how you can build a product marketing page using a schema consisting of polymorphic relations.

This example is built with Next.js, graphql-request and Tailwind CSS.

Demo

Deploy with Vercel

How to Use

Download Manually

npx degit graphcms/graphcms-examples/using-union-types using-union-types

Install & Run:

cd using-union-types
npm install
npm run dev
# or
cd using-union-types
yarn
yarn dev

Run on Codesandbox

Develop with Codesandbox