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.
mongo-rest-example.htmlwith the UI for our RESTful application, and run both the REST server and the document server with Node.js.
GETrequest, we ...