June 2015
Intermediate to advanced
192 pages
4h 8m
English
By now, that you might be wondering where JSON comes into play when using MongoDB. When you access a MongoDB database instance using a RESTful interface such as mongo-rest, the documents are transferred to the client using JSON. Let's see how to get a list of documents from MongoDB.
Using REST with Node.js and MongoDB takes several steps.
rest-server.js, routes/documents.js, and mongo-rest-example.html with the UI for our RESTful application, and run both the REST server and the document server with Node.js.GET request, we ...Read now
Unlock full access