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
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