Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
362 views
in Technique[技术] by (71.8m points)

mongodb - .i am usung MERN stack.i found the object by POSTID. then how can i delete one comment searching by its COMMENTID?

{ likes: [ 5fe6fababec3d734c052e2e2, 5fe849ebecd33d25d032267c ], _id: 5fe742a51266472670982b16, title: 'rtr', body: 'trgr', photo: 'http://res.cloudinary.com/diwcwtrkc/image/upload/v1608991396/srl5eykcqultnqdhnhhe.jpg', postedBy: 5fe6fababec3d734c052e2e2, comments: [ { _id: 5fe8ad9a4d967c06d0fd4d02, text: 'hello', postedBy: 5fe849ebecd33d25d032267c }, { _id: 5fecb7be33bc7d3f5c3bc10a, text: 'hi', postedBy: 5fdb3b16fe58801a402e9d52 } ], createdAt: 2020-12-26T14:03:17.469Z, updatedAt: 2020-12-30T17:24:14.710Z, __v: 0 }


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...