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

php - How to pass multiple values from url -

database - php search bar when I press submit with nothing in the search bar it shows all the data -

ios - How to load .png images from Documents folder of an app -