GraphQL Yoga plugin with Apollo Federation for NestJS
Check out Yoga's documentation about NestJS integration!
npm i @nestjs/graphql graphql-yoga graphql @graphql-yoga/nestjs-federation
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 {}
This is just a federation and gateway driver; meaning, everything else should work as showcased in NestJS federation documentation.
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!
Help us keep Yoga open and inclusive. Please read and follow our Code of Conduct as adopted from Contributor Covenant.