Re: How to filter by population result in mongoose?

Skip to first unread message
Message has been deleted

Maksym Ihnatenko

Jul 30, 2015, 6:37:32 AM7/30/15

> On 30 Jul 2015, at 11:30, Rouben Shekspir <> wrote:
> Hi folks.
> Let's consider this situation.I have to mongo schemas.
> var ChildSchema = new Schema({
> name: String,
> place: {
> type: Schema.Types.ObjectId,
> ref: 'Parent',
> index: true,
> required: true
> }
> });
> var ParentSchema = new Schema({
> name: String
> });
> So now I want to get all ChildSchema documents thats parent name is 'bar'. Also I'm using skip,limit, so there will be no case for using manual filtering in Node(it will crash everything).


This is the mailing list about Mongoose the web server, not the mongodb thing.

Best regards,

Rouben Shekspir

Jul 30, 2015, 6:43:41 AM7/30/15
yes sorry, i get it to late.

You received this message because you are subscribed to a topic in the Google Groups "mongoose-users" group.
To unsubscribe from this topic, visit
To unsubscribe from this group and all its topics, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

Reply all
Reply to author
0 new messages