-
Notifications
You must be signed in to change notification settings - Fork 42
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
Mock data always return "Hello World" #37
Comments
@gmoura responding with "Hello World" is actually some default functionality in Apollo Server. I was just having this issue, too. For me, the real issue was that |
Can @jfairley / anyone elaborate? In what way is the OP's code configured incorrectly? |
Since it's an API mock, it could be a number of things, but would depend on the larger context of @gmoura's app. The big takeaway is that it seems that If I had to guess, it looks like @gmoura is missing a level in that structure. For example, I have a mocked request in my app like this:
which corresponds to
In this case, Sometimes these names are the same, but that's why I say "it depends". Possibly, what @gmoura needs is the following, but it's impossible to know without seeing the source query in the client code.
|
Hi guys, I'm quite new in GraphQL world and currently I'm facing some difficulties/trouble trying to implement this plugin, If anyone can help, I'll be really thankful .
Problem:
All my mock data fields are returning
Hello World
How I'm using this plugin:
In my
integration/index.spec.js
But I get
Thanks guys ❤️
The text was updated successfully, but these errors were encountered: