This library is meant to make it easier and faster to get started using GraphQL with your existing MongoDB setup.
Class | Description |
---|---|
GraphQLDocument |
Wraps mongoose Schema definition, GraphQL queries/mutations/subscriptions into a managable Object, allowing easier GraphQL types composition and referencing. |
There is a minimal example of usage included within the library. Please see its source code or run it locally on your machine by following the instructions below:
- Fork the repository.
- Install the dependencies with
npm install
. - Run
npm start
from the repository directory. This will create a simple Express server with the connection to the test Mongo database. - Navigate to http://localhost:8040. Play around with GraphQL using an incredible GraphiQL IDE.
- express-graphql. Easy way to establish a GraphQL end-point in your Express server.
- mongoose-schema-to-graphql. Responsible for converting mongoose Schema to GraphQL types.