Skip to content
Davide Gheri edited this page Feb 19, 2021 · 6 revisions

nestjs-mercurius

Use Mercurius GraphQL with NestJs framework

Installation

Install required dependencies

npm i fastify mercurius @nestjs/platform-fastify 

Install nestjs-mercurius

npm i nestjs-mercurius

Install optional dependencies

Use Altair as client GraphQL IDE

npm i altair-fastify-plugin

Support GraphQL Uploads

npm i mercurius-upload

Usage

This module is an extension of the official @nestjs/graphql module, type definitions and resolvers works exactly in the same way (decorator has to be imported from @nestjs/graphql) This wiki will cover only the features that differentiates from the official Nestjs module