Nexus has a plugin system. Plugins can extend Nexus at devtime and runtime. Devtime means things like extending the build or watcher during dev mode. Runtime means the part you deploy into production like the server and schema. The Nexus plugin system is still not mature but some plugins exist. Notably the Prisma plugin provides a rich integration between Prisma and Nexus. If you're curious about how to create a plugin you can refer to our guide for that.

You can find plugins by looking on the sidebar on this website or searching npm npm search nexus-plugin. To use a plugin just import them and then use them. For example:

1import { prisma } from 'nexus-plugin-prisma'
2import { use } from 'nexus'
Edit this page on Github