I'm trying to apply a role filter which uses the function call, but it doesn't work (I'm getting empty result instead of a list of documents). If I switch to some other type of filter assertion like for example:
{ "email": "email@gmail.com" }
or
{
"email": {
"$in": [
]
}
}
than it works as expected.
I have followed tutorial and documentation on how to call a function from the filter and literally copy code to filter and function, but it doesn't return anything...
I have attached a screenshot of the filter and function.
Any suggestions or help?