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 )
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 )
Although above code is just for demostration, in real scenario those queries are added by feathers-casl.