In this post we’ll have a look at leveraging GraphQL types to expose MongoDB capabilities in NodeJs. We will also examine graphql-to-mongodb, the unobtrusive solution we came up with for our service, and its rationales.

Image for post
Image for post

The advent of the GraphQL MongoDB stack

Relative newcomer GraphQL and established MongoDB are two technologies that appear well suited to one another. MongoDB is a document-oriented DB with a flexible query language. GraphQL is a service API and a query language at the same time. It works by defining a hierarchical, typed, and parameterized schema. Both technologies take and receive arguments in a hierarchical data structure. …


Yoav Karako

.NET/NodeJs Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store