Skip to content

Instantly share code, notes, and snippets.

View julestruong's full-sized avatar
🎯
Focusing

Jules T julestruong

🎯
Focusing
  • BackMarket
  • Paris
  • 10:57 (UTC +02:00)
View GitHub Profile
import { loadPackage } from '@nestjs/common/utils/load-package.util';
import { transformSchema } from '@nestjs/graphql';
import { BuildFederatedSchemaOptions } from '@nestjs/graphql';
import { GraphQLSchema, isObjectType, buildASTSchema } from 'graphql';
import { forEach } from 'lodash';
export function buildMercuriusFederatedSchema({
typeDefs,
resolvers,
}: BuildFederatedSchemaOptions) {