假设 MongoDB 文档(表)comment
是
_id:5ea7182e6dab0211980cbd57
AGREED_COUNT:[],
BLOG_ID:"5ea572301ce15d34ac1d6d2a",
USER_IMG_URL:"1587847821116-logo.jpg",
USER_UUID:"5ea49d8cd6e3a73f48a433fd",
DESCISION_TEXT:"ayush ",
USER_NAME:"Ayush sahu",
DATE:2020-04-27T17:36:46.894+00:00,
RPLY:[
{ RPLY_AGREED: [],
_id:5ea718376dab0211980cbd58,
DATE:2020-04-26T18:30:00.000+00:00,
USER_UUID:"5ea49d8cd6e3a73f48a433fd"
RPLY_TEXT:"sahu",
IMG_URL:"1587847821116-logo.jpg",
USER_NAME:"Ayush sahu" }
]
我需要在 MongoDB 中编写查询以将对象推送到andRPLY_AGREED
的位置。comment _id = 5ea7182e6dab0211980cbd57
reply _id = 5ea718376dab0211980cbd58