Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.22 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.22 KB

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