-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[apollo-server-fastify] playground not working #4463
Comments
Same here, when using it with nestJs.
|
Faced the same issue. I guess we can either wait for #4356 to land or downgrade to fastify v2 for the time being. |
Exactly... In my case I will wait and use GraphiQL for now. Will keep an eye on #4356 |
I have the same issue, do you know any workaround? |
+1 |
Would love an update for Fastify v3! |
To fix this issue, I simply upgrade the The alpha version seems not safe, But I didn't see any errors so far |
@phattranky This works for me, for now my application does not need something 100% safe, thanks! |
@phattranky @Duduzera1997 I upgraded to the alpha version but get this error. What version of the
|
"@nestjs/common": "^7.0.0", |
Weird. I have the same versions for everything but |
For those attempting to use Apollo Server 3.x for its newer Fastify version, please see #4356 (comment), which is a comment I wrote for a similar audience on another PR which introduced the functionality. In particular, pay attention to my suggestion in that comment about reading the v3 |
Thanks @abernix for the update. We are working with a client to deploy a graphql gateway/orchestrator solution. We have an sla for high throughput, which is why I'm recommending Fastify as the underlying web framework. Apollo server needs to side with performance because it often ends up in the forefront ingesting all traffic in transitional architectures, and therefore Fastify (the performance web framework) is equally important to prioritize. I am excited to get graphql and Apollo into production in the near future and thanks for the great work. |
+1 |
This is fixed on the release-3.0 branch, which supports Fastify v3 (only). Apollo Server 3.0 is now under active development; I hope to get some alphas out within a week. |
Although this issue may be fixed, I'm unable to test it with
|
@genu What version of apollo-server-core is installed? There might be an issue there. That said I'll have another alpha out pretty soon hopefully; there's been a lot of improvements since the last one. |
@genu I finally got it working by also installing @glasser Somehow, I and some others didn't figure this out by reading the docs. Your last comment pointed me in the right direction. Do you think it might be useful to make it more explicit in the docs? |
I'll test that configuration on my end and report back. Thx |
I found current preview version has possibility affects your yarn.lock or package.lock version polluted. See the detail: #5278 |
Currently using `[email protected]` and patched `@nestjs/[email protected]` (`@nestjs/graphql` not supporting Apollo v3 yet) to workaround the following issue: apollographql/apollo-server#4463 (comment). For the patch see: https://www.apollographql.com/docs/apollo-server/migration/#subscriptions
I followed the instructions at https://www.npmjs.com/package/apollo-server-fastify and the
/graphql
endpoint works but it doesn't run the playground even withplayground: true, introspection: true
in the settings.Versions
Expected behavior:
Going to
/graphql
with a browser should run the playgroundActual behavior:
It shows:
GET query missing.
How to reproduce it:
You can run the example in a CodeSandbox:
https://codesandbox.io/s/wispy-dream-66j5g?file=/package.json:197-281
The text was updated successfully, but these errors were encountered: