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

Apollo fastify server workaround #2582

Closed
1 task done
tkow opened this issue Jan 7, 2023 · 1 comment
Closed
1 task done

Apollo fastify server workaround #2582

tkow opened this issue Jan 7, 2023 · 1 comment
Labels

Comments

@tkow
Copy link

tkow commented Jan 7, 2023

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

I recently have @nestjs/graphql configuration worked with fastify v4. If someone reach #2307, this link is helpful.

Currently, my dependencies are

"@nestjs/apollo": "^10.1.6",
"@nestjs/cli": "^9.1.5",
"@nestjs/common": "^9.2.0",
"@nestjs/core": "^9.2.0",
"@nestjs/graphql": "^10.1.6",
"@nestjs/platform-fastify": "^9.2.0",
"@fastify/static": "^6.5.0",
"@fastify/swagger": "^8.1.0",
"fastify": "^4.9.2"
"apollo-server-fastify": "^3.11.1",

and you need including

"resolutions": {
    "apollo-server-fastify/@fastify/accepts": "^4.0.0",
    "apollo-server-fastify/@fastify/cors": "^8.0.0"
}

in you package.json if you use yarn (or override for npm users may work) and do cofigurations as official docs say..

Currently, no doc explains what versions are correctly worked, so I want to write the configs to docs.

Describe the solution you'd like

Mention the configurations in the official doc.

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

For someone want to use fastify-apollo-server v3 with nestjs.

@kamilmysliwiec
Copy link
Member

#2636 (comment)

@nestjs nestjs locked and limited conversation to collaborators Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants