graphql-framework-experiment-examples icon indicating copy to clipboard operation
graphql-framework-experiment-examples copied to clipboard

Runnable examples to help you learn how to use Nexus.


👋

Development of Nexus Framework has ended. Please read our annoucement issue for details and follow our migration guide to start using Nexus Schema.



🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧 🚧

Nexus Examples

This repo includes various examples using Nexus. Each directory here contains one runnable example. The naming pattern of directories is designed to help navigate them. The gist is as follows (if you are curious about the exact rules see the contributing guide):

  • plugin-* Are for demonstrating a plugin
  • plugins-* Are for demonstrating plugins used together
  • with-* Are for demonstrating an integration with some other tool Notably without using the plugin system.

Below you will find the examples indexed by various dimensions. So if you're curious about a topic like "authentication" or "databases" you can easily find all examples that relate to that.

If you are an expert in some tool that Nexus could integrate with but there is no example here yet for it, we would welcome a contribution for it! To get started please refer to the contributing guide. 🙏🏻

Basic

  • hello-world

By Plugin

Prisma

  • plugin-prisma
  • plugins-prisma-and-jwt-auth
  • plugins-prisma-and-jwt-auth-and-shield
  • with-nextjs-and-vercel-and-plugins-prisma

jwt-auth

  • plugins-prisma-and-jwt-auth
  • plugins-prisma-and-jwt-auth-and-shield

shield

  • plugins-prisma-and-jwt-auth-and-shield

By Integration

Prisma

  • with-prisma
  • plugin-prisma

NextJS

  • with-nextjs
  • with-nextjs-and-vercel-and-plugins-prisma

Vercel

  • with-nextjs-and-vercel-and-plugins-prisma

By Domain

Deployment

  • with-nextjs-and-vercel-and-plugins-prisma

Auth

  • plugins-prisma-and-jwt-auth-and-shield
  • plugins-prisma-and-jwt-auth

Databases

  • with-prisma
  • plugin-prisma