Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mercurius gateway only get queries and mutations from one service #2008

Closed
2 of 4 tasks
SirReiva opened this issue Feb 11, 2022 · 5 comments
Closed
2 of 4 tasks

Mercurius gateway only get queries and mutations from one service #2008

SirReiva opened this issue Feb 11, 2022 · 5 comments

Comments

@SirReiva
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

user service definitions in playground:
image
post service definitions in playground:
image
Gateway definitions:
image
Only appear queries from one service but schema definitions are loaded
image

Minimum reproduction code

https://github.com/SirReiva/nest-mersuruis-gateway-gqlv10-issue

Steps to reproduce

-npm i
-npm run start:user
-npm run start:post
-wait for services start...
-npm run start:gateway

Expected behavior

Load all queries and mutations from all services

Package version

10.0.2

Graphql version

image

NestJS version

8.2.6

Node.js version

16.13.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@Davide-Gheri
Copy link
Contributor

This is probably related to this Mercurius issue:
mercurius-js/mercurius-gateway#23

@kamilmysliwiec
Copy link
Member

@Davide-Gheri would you like to create a PR with the same workaround that was merged to the nestjs-mercurius package? 🤞

@Davide-Gheri
Copy link
Contributor

@kamilmysliwiec yes! I'll work on it these days.

@smolinari
Copy link

@Davide-Gheri - Nice to see you here helping out. Awesome!! :)

Scott

@kamilmysliwiec
Copy link
Member

Fixed in 10.0.4 thanks to @Davide-Gheri contribution! 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants