I am currently trying to build a GraphQL App where one Service references an entity from another Service. I tried to follow the steps on the docs of Federation for Mercurius (https://docs.nestjs.com/graphql/federation#code-first-3) .
The docs state to set federationMetadata: true, but I am getting this error:
src/app.module.ts:14:7 - error TS2345: Argument of type '{ driver: typeof MercuriusFederationDriver; autoSchemaFile: true; federationMetadata: boolean; }' is not assignable to parameter of type 'MercuriusDriverConfig'.
Object literal may only specify known properties, and 'federationMetadata' does not exist in type 'MercuriusDriverConfig'.
14 federationMetadata: true,
~~~~~~~~~~~~~~~~~~
Setup:
NodeJs: 18.16.0
PNPM: 8.6.0
A minimal repo where I could reproduce the missing config entry can be found here
https://github.com/Loubis/mercurius-federation
I am not sure if I missed something important somewhere in the setup step.
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).