All Projects → juicycleff → nestjs-graphql-gateway

juicycleff / nestjs-graphql-gateway

Licence: MIT license
Apollo Federation support for NextJS GraphQL module. Note: There is support for federation in the official package now so this project is deprecated

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to nestjs-graphql-gateway

nestjs-graphql-serverless
Boilerplate for using NestJS with GraphQL (Code-First) on serverless environment (AWS Lambda)
Stars: ✭ 64 (+392.31%)
Mutual labels:  nestjs, nestjs-graphql
prisma-nestjs-graphql
Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module
Stars: ✭ 276 (+2023.08%)
Mutual labels:  nestjs, nestjs-graphql
aws-nestjs-starter
Serverless, AWS, NestJS, GraphQL and DynamoDB starter
Stars: ✭ 200 (+1438.46%)
Mutual labels:  nestjs, nestjs-graphql
nestjs-prisma-starter
Starter template for NestJS 😻 includes GraphQL with Prisma Client, Passport-JWT authentication, Swagger Api and Docker
Stars: ✭ 1,107 (+8415.38%)
Mutual labels:  nestjs, nestjs-graphql
Graphql
GraphQL (TypeScript) module for Nest framework (node.js) 🍷
Stars: ✭ 697 (+5261.54%)
Mutual labels:  apollographql, nestjs
blog-be-next
The back-end platform for Yancey blog.
Stars: ✭ 33 (+153.85%)
Mutual labels:  apollographql, nestjs
nestjs-api-mongoose
Collection example apps with NestJS and Typeorm, Sequelize, Mongodb, PostgreSQL, MySQL, GraphQL, Mercurius, etc. for the NestJS community 😻
Stars: ✭ 153 (+1076.92%)
Mutual labels:  nestjs, nestjs-graphql
game-store-monorepo-app
A full-stack web app built with NestJS and ReactJS that helps you find and discover over 500,000+ video games on your device. Powered by RAWG API.
Stars: ✭ 106 (+715.38%)
Mutual labels:  apollographql, nestjs
clock-in-out
A clock-in/out system using nestJS, PostgreSQL, TypeORM, Angular, Arduino, RxJS
Stars: ✭ 61 (+369.23%)
Mutual labels:  nestjs
connect4
Connect 4️⃣Game
Stars: ✭ 1 (-92.31%)
Mutual labels:  nestjs
nest-keycloak-connect
keycloak-nodejs-connect module for Nest
Stars: ✭ 174 (+1238.46%)
Mutual labels:  nestjs
nest-puppeteer
Puppeteer (Headless Chrome) provider for Nest.js
Stars: ✭ 68 (+423.08%)
Mutual labels:  nestjs
angular-nest-grpc
Example full-stack Typescript project using Angular, NestJS and gRPC
Stars: ✭ 85 (+553.85%)
Mutual labels:  nestjs
nestjs-i18n
The i18n module for nestjs.
Stars: ✭ 376 (+2792.31%)
Mutual labels:  nestjs
fullstack-ts-boilerplate
Full-stack boilerplate in TS using modern technology
Stars: ✭ 25 (+92.31%)
Mutual labels:  nestjs
iron-session
🛠 Node.js stateless session utility using signed and encrypted cookies to store data. Works with Next.js, Express, NestJs, Fastify, and any Node.js HTTP framework.
Stars: ✭ 1,729 (+13200%)
Mutual labels:  nestjs
nestjs-rest-sample
NestJS RESTful APIs Sample
Stars: ✭ 204 (+1469.23%)
Mutual labels:  nestjs
nest-auth-example
Nest.js authentication with Passport. Realworld example
Stars: ✭ 186 (+1330.77%)
Mutual labels:  nestjs
github-react-native-apollo-graphql
📱 A GitHub mobile app built with React-Native and Apollo GraphQL
Stars: ✭ 24 (+84.62%)
Mutual labels:  apollographql
reactnest-boilerplate
🗼A starter project template with (Ngnix, ReactJS, Redux, Redux Thunk, React Router, NestJS, TypeORM, PostgreSQL, Docker, PM2) + (Code Style, Conventional Changelog with Commitlint, Husky, Git CZ)
Stars: ✭ 85 (+553.85%)
Mutual labels:  nestjs

NestJs GraphQL Gateway (supports type-graphql)

NestJS GraphQL Apollo Federation extension. You keep using @nestjs/graphql for all other steps

NPM Version License Code Size Top Language Top Language

Installation

$ yarn install nestjs-graphql-gateway

Setup federated service

import { Module } from '@nestjs/common';
import { GraphqlDistributedModule } from 'nestjs-graphql-gateway';

@Module({
  imports: [
    GraphqlDistributedModule.forRoot({
      typePaths: [path.join(process.cwd() + '/apps/service-auth/src', '/**/*.graphql')],
      introspection: true,
      playground: {
        workspaceName: 'GRAPHQL CQRS',
        settings: {
          'editor.theme': 'light',
        },
      },
      context: (ctx) => ctx,
    })
  ]
})
export class AppModule {}


// Code first TypegraphQl

@Module({
  imports: [
    GraphqlDistributedModule.forRoot({
      autoSchemaFile: 'graphs/demo.gql',
      
      // optional orphaned types
      buildSchemaOptions: {
        orphanedTypes: [Tenant, TenantMember, User],
      },
      
      context: (ctx) => ctx,
    })
  ]
})
export class AppModule {}

Setup Gateway

import { Module } from '@nestjs/common';
import { GraphqlDistributedGatewayModule } from 'nestjs-graphql-gateway';

@Module({
  imports: [
    GraphqlDistributedGatewayModule.forRoot({
      subscriptions: false,
      path: '/graphql',
      context: context => context,
      serviceList: [
        { name: 'auth', url: 'http://localhost:1000/graphql' },
        { name: 'user', url: 'http://localhost:2000/graphql' },
        // more services
      ],
      buildService({ url }) {
        return new HeadersDatasource({ url });
      },
    }),
  ]
})
export class AppModule {}

License

This project is MIT licensed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].