Javascript 使用登录用户';从MongoDB获取评论;上面是我的评论

Javascript 使用登录用户';从MongoDB获取评论;上面是我的评论,javascript,node.js,mongodb,mongoose,Javascript,Node.js,Mongodb,Mongoose,我使用NodeJS和Mongoose来处理帖子上的评论。 以下是注释模式的外观: // the post id in which this comment exists post: String, // the user who posted the comment user: { id: String, name: String, verified: Boolean }, // the actual comment comment: String, createdAt:

我使用NodeJS和Mongoose来处理帖子上的评论。 以下是注释模式的外观:

// the post id in which this comment exists
post: String,
// the user who posted the comment
user: {
    id: String,
    name: String,
    verified: Boolean
},
// the actual comment
comment: String,
createdAt: {
    type: Date,
    default: Date.now
}
我需要一个类似FB或Youtube的评论实现,当用户在特定帖子上加载评论时,他/她会看到所有评论,但他/她的评论位于顶部(数组的索引0)(无论何时发布)

如何使用Mongo Aggregate实现这一点