-
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
Is it possible to use MongoDB on Apollo Server without the use of anything related to Express? #1781
Comments
I don't think this is how Apollo Server works. Although Apollo adds a GraphQL wrapper around a node server to handle GraphQL queries, you still need a node server to wrap around underneath (provided by Express, Koa, and other frameworks that Apollo is compatible with). If you are looking for a more batteries-included solution, you may want to look at Prisma, which will soon release the beta version of its MongoDB connector that you can follow along its progress here. Prisma uses Apollo Server underneath the hood and sets up a graphql-express server for you with nice default values. |
As @selipso said, |
Hi everyone, I'm going to close this since this doesn't appear to be a bug with Apollo Server, but rather a question about how to use it or one of its components. Rather than asking it here in GitHub Issues — where efforts are focused on fixing bugs and adding new features — I recommend directing further questions to the Apollo Server channel within the Apollo community on Spectrum.chat where there are community members who might be able to relate to a similar problem, or might be able to help you out more interactively. Thanks for your understanding! |
Hello,
This might be a super general and vague question to ask- I just want to know if it's possible to set up Apollo Server/GraphQL & also run MongoDB (using Mongoose) in the same project. I'm new to all this tech.
I was under the impression that you'd be able to run Apollo Server and MongoDB without Express, but every tutorial I find online is using both Apollo Server AND Express. I was under the impression that Express and Apollo did the same job and that there was no reason to have both...
Thank you
The text was updated successfully, but these errors were encountered: