mardi 3 mars 2015

How to display specific field(s) of a MongoDB on a web page

I have a local MongoDb and I'm trying to display some of its fields on a web page separately. I can use this;



$(function() {
$("#dataDiv").html('<object data="http://ift.tt/1ADmLIB"/>');
});


to display the entire db.


This db has fields as; "date", "url", "LineNo" ...etc.


Without making separate data sets, and querying them. How can I display these fields separately.


Is there a way to add some sort of "filters" at the end of http://ift.tt/1ADmLIB to query and display specific fields like date or url field?





Aucun commentaire:

Enregistrer un commentaire