node.js - MongoDB References how to? -



node.js - MongoDB References how to? -

i have 2 collections in mongodb (i utilize node js)

first: { _id: "france", color: "red", refid: { "1": "fra1", "2": "fra2"}} second: { _id: "fra1", color: "blue", info : "country"} { _id: "fra2", color: "white", info : "country"}

how can display info in illustration console.log show me reference beetwen collections? info displayed in way(when type db.first.find().pretty()):

{ _id: "france", color: "red", refid: { "1": "fra1", color: "blue", info : "country", "2": "fra2", color: "white", info : "country"} } }

node.js mongodb

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -