how to get mongodb docker compose host code example
Example 1: how to get mongodb docker compose host
db.fruits.find().pretty()
Example 2: how to get mongodb docker compose host
db.fruits.insertMany([ {name: "apple", origin: "usa", price: 5}, {name: "orange", origin: "italy", price: 3}, {name: "mango", origin: "malaysia", price: 3} ])