GraphQL Server + Mongo
Vulcan Fireβ
π₯Vulcan Fire is our internal CRUD engine. It lets you setup the most basic operations very easy for any kind of data model. A simple blog requires at least a dozen GraphQL resolvers: let Vulcan do the hard work!
More info in the live learning tutorial or in Vulcan Fire docs.
Apollo Serverβ
Demo of a simple serverβ
See src/pages/api/graphql
for a demo server built with Apollo and Express
NOTE: Expect drastic enhancement of the way the server is set up, thanks to VulcanJS declarative approach.
GraphQL Playgroundβ
GraphQL Playground is available on api/graphql
. All API routes of Next are located in the src/pages/api
folder, hence the api
prefix.
Graphql Voyagerβ
Open api/debug/graphql-voyager
and explore your API visually.
MongoDBβ
Persistance with Mongo through Dockerβ
As easy as ABC:
yarn start:mongo
It will run an ephemeral Docker instance of Mongo v4. Data are stored in your project, in the ./.mongo
folder. The container is removed when stopped, but your data are persisted and will still be available on next run.
Lambda safe connectionβ
Relevant docs:
Official tutorial without mongoose
Best practice for Mongo in AWS Lambda