I need to retrieve all the documents that are in my collection in MongoDB, but I cannot figure out how. I have declared my \'collection\' like this-
private stat
Retrieve all the documents-
var documents = SpeCollection.AsQueryable();
Also convert to JSON object-
JSON
var json = Json(documents, JsonRequestBehavior.AllowGet);