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


Golang Back In TIOBE Top 10
21/02/2024

Google's system language Go is ranked #8 in the TIOBE Index for February 2024. This is the third time it has entered the Top 10. However, it is now in the highest position it has ever had to date.



iOS 17.4 Released With Support For App Stores In The EU
06/03/2024

I have written about Apple's approach to complying with regulation, characterizing it as malicious compliance. It also seems that Apple is a master of creating the unintended consequence and letting i [ ... ]


More News

raspberry pi books

 

Comments




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