Re: How to filter by population result in mongoose?

38 views
Skip to first unread message
Message has been deleted

Maksym Ihnatenko

unread,
Jul 30, 2015, 6:37:32 AM7/30/15
to mongoos...@googlegroups.com

> On 30 Jul 2015, at 11:30, Rouben Shekspir <sheks...@gmail.com> 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).

Hi,

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

Best regards,
Max

Rouben Shekspir

unread,
Jul 30, 2015, 6:43:41 AM7/30/15
to mongoos...@googlegroups.com
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 https://groups.google.com/d/topic/mongoose-users/CQYRihtB5Y8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages