Setup Apollo server v4 with apollo gateway and graphql-modules #2473
Unanswered
ParkerTran
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have try to setup apollo server with apollo gateway and graphql-module.
![Capture](https://private-user-images.githubusercontent.com/139830875/283410674-ea6e2875-cce8-4b19-8c6e-ecb171f8ffac.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI4Mzk1ODUsIm5iZiI6MTcyMjgzOTI4NSwicGF0aCI6Ii8xMzk4MzA4NzUvMjgzNDEwNjc0LWVhNmUyODc1LWNjZTgtNGIxOS04YzZlLWVjYjE3MWY4ZmZhYy5QTkc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwNVQwNjI4MDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZTI2MDZlYjBmY2E1NzY5MWQ4YzNkNmY4YTMyZTg4OTFkZDk3ZGQ5YjIyOTk2Nzk1NmY0YjNhNmEzZjdhZmNmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9._RmCRysbLI09Iq6JQPEVk07muyDhOiRjPRZdZq2swK0)
This is my repo of this setup: Graphql Demo
The server is running success but problem come when call api.
My resolver
Query: { me() { return { id: '1', username: '@ava' }; }, },
The return value for API me is null. But it should return { id: ‘1’, username: ‘@ava’ }.
Could you pls take a look on this and give me an advice? Thank you so much.
Beta Was this translation helpful? Give feedback.
All reactions