-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
My MongoDB document is like
I am trying to replicate that query with feathers-mongoose service find method.
Expected behabiour should be matched count 0, as in the original document the objectId 62ed2315399edd80209a502a only have create in the allow field array.
In MongoDB compass after execute the query the result become No Matchd ( Expected )
But, in feathers-mongoose service it returns with single match item. ( unexpected )
async find(params?: Params | undefined): Promise<any[] | Paginated<any>> {
return await super.find({query: {manage: {$elemMatch: {_id: new mongoose.Types.ObjectId('62ed2315399edd80209a502a'), allow: 'read'}}}})
}
Although above code is just for demostration, in real scenario those queries are added by feathers-casl.
Metadata
Metadata
Assignees
Labels
No labels


