JSPM

@graphql-yoga/nestjs-federation

3.3.1-rc-20240429075836-d735dff8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3902
  • Score
    100M100P100Q154010F
  • License MIT

GraphQL Yoga driver with Apollo Federation for NestJS GraphQL.

Package Exports

  • @graphql-yoga/nestjs-federation
  • @graphql-yoga/nestjs-federation/package.json

Readme


GraphQL Yoga plugin with Apollo Federation for NestJS

Fully-featured GraphQL server as a plugin for the progressive Node.js framework.

Check out Yoga's documentation about NestJS integration!


Getting started

Install

npm i @nestjs/graphql graphql-yoga graphql @graphql-yoga/nestjs-federation

Create application module

import { YogaFederationDriver, YogaFederationDriverConfig } from '@graphql-yoga/nestjs-federation'
import { Module } from '@nestjs/common'
import { GraphQLModule } from '@nestjs/graphql'

@Module({
  imports: [
    GraphQLModule.forRoot<YogaFederationDriverConfig>({
      driver: YogaFederationDriver,
      typePaths: ['**/*.graphql']
    })
  ]
})
export class AppModule {}

Develop GraphQL

This is just a federation and gateway driver; meaning, everything else should work as showcased in NestJS federation documentation.

Contributing

If this is your first time contributing to this project, please do read our Contributor Workflow Guide before you get started off.

Feel free to open issues, pull requests and create discussions. Community support is always welcome!

Code of Conduct

Help us keep Yoga open and inclusive. Please read and follow our of Conduct as adopted from Contributor Covenant.