Closed all2pie closed 1 year ago
You can fix this problem by setting the version of @apollo/subgraph in your services package.json to 2.0.2.
"dependencies": { "@apollo/subgraph": "2.0.2", ... },
Will there be any real fix for this? Because @begninix solution not work.
Will there be any real fix for this? Because @begninix solution not work.
Do you have any solution for this issue ? I am facing same issue and where federation with more than one service throws syntax error "Syntax Error: Unexpected "@". Single service works fine with federation when using Mercurius with Nestjs
is there any solution for this?? I am facing the same issue 😩
is there any solution for this?? I am facing the same issue 😩
I did manage to pass all issues and was able to run the server successfully. I had to fix the schema(I use schema first approach) and updated Mercurius federation lib to fix the issue. Still not sure if the solution will be accepted by Mercurius author.
This doesn't seem to be related to NestJS integration packages
Did you read the migration guide?
Is there an existing issue that is already proposing this?
Potential Commit/PR that introduced the regression
No response
Versions
8.0.0 -> 9.0.3
Describe the regression
After upgrading the Nestjs to V9 the Federation Gateway stopped working and is giving this error:
It works fine if there is only single service in the services array in
gateway.module.ts
, but its giving the above error with multiple servicesMinimum reproduction code
https://github.com/all2pie/nestjs-mercurius-fedration-gateway-issue
Expected behavior
The gateway should work fine
Other
No response