MongoDB Adds GraphQL Support
Written by Kay Ewbank   
Monday, 03 February 2020

The developers of MongoDB have announced that you can now use GraphQL in JavaScript applications to interact with MongoDB documents. The facility has been added through Stitch integration in MongoDB Atlas clusters.

MongoDB is a NoSQL document database that stores its documents in a JSON-like format with schema. GraphQL is a query language for APIs originally developed for internal use in Facebook before being made open source. 

mongodblogo

GraphQL means you can create a query that works on and returns only the fields you want from an API, similar to a MongoDB projection or a SQL query. This is much simpler than making an HTTP request to an API endpoint and receiving the full payload of that resource as a response.

Until now if you wanted to use GraphQL in a JavaScript app on MongoDB data, you'd need a dedicated web service with contained schema information, resolve functions with database logic, and other middleware logic to sit between the database and the client facing application.By making use of Stitch for authentication and GraphQL queries makes things much easier. MongoDB Stitch is a serverless platform that handles server interactions. It is built on top of MongoDB Atlas, and automatically integrates the connection to your database. Developers can connect to Stitch through the Stitch Client SDKs, which are available for many platforms including JavaScript, iOS, and Android

The Stitch GraphQL API  lets client apps access data stored in a linked MongoDB cluster using any standard GraphQL client. Stitch automatically creates GraphQL types for every linked collection that has a defined document schema and evaluates role-based permissions for all GraphQL requests.

mongodblogo

More Information

MongoDB Website

Related Articles

Amazon Ditches MongoDB, Launches Rival

MongoDB 4 Released

MongoDB 4.0 Gets Multi-Doc ACID Support

MongoDB Stitch Makes App Development Easier

MongoDB 3.2 Released 

MongoDB 3 Announced

Facebook GraphQL Gets Own Foundation

Open Source GraphQL Engine Launched

Graphcool Eases Your Way Into GraphQL

GraphQL Leaves Tech Preview

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Udacity's New Discovering Ethical AI Course
12/04/2024

Udacity has just launched an hour-long course on Ethical AI. Intended for a wide audience across many industries, it introduces to basic concepts and terms needed to step into the world of Ethica [ ... ]



ZLUDA Ports CUDA Applications To AMD GPUs
18/04/2024

ZLUDA is a translation layer that lets you run unmodified CUDA applications with near-native performance on AMD GPUs. But it is walking a fine line with regards to legality.


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info