matheusrocha89 / graphql-example-mongodb

GraphQL server running with graphql-yoga and MongoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL with MongoDB

Before you start

The app uses environment variable for the database uri address for connection, so before you start export the variable DB_URI with the connection address for you MongoDB database. Example:

export DB_URI="mongodb+srv://<username>:<password>@testcluster-ctovx.gcp.mongodb.net/test?retryWrites=true"

Install packages

yarn

Start server

yarn start

Your server will run on port 4000.

About

GraphQL server running with graphql-yoga and MongoDB


Languages

Language:JavaScript 100.0%