Skip to content

joshlimitless/graphcms-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published