how can I rewrite my mongoose query after splitting data from one model into two?
问题 In my application I store comments. Previously my model for that looked like this: var CommentsSchema = new Schema({ username: {type: String}, display_name: {type: String}, facebook_username: {type: String}, text_content: {type: String}, photo_content_url: {type: String}, hashtags: {type: [String]}, device_id: {type: String}, comment_date: {type: Date, default: Date.now}, friends_only: {type: Boolean, default: false} } Each comment - besides storing its details - had also details about the