Vadim Melamed Posted May 25, 2021 Posted May 25, 2021 I would like to add via TDV to MongoDB a new array for the existing Restarant. For example : must be added new "grades" "grade" : "C" to Collector Restarants : **** ADD New grade *********************** {"score": 10, "date": {"$date": "1358985600000"}, "grade": "C" }*************************************************** Restarants { "address": { "building": "1007", "coord": [-73.856077,40.848447 ], "street": "Morris Park Ave", "zipcode": "10462" }, "borough": "Bronx", "cuisine": "Bakery", "grades": [ {"grade": "A", "score": 2, "date": {"$date": "1393804800000"} }, {"date": {"$date": "1378857600000"}, "grade": "B", "score": 6 }, ], "name": "Morris Park Bake Shop", "restaurant_id": "30075445" }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now