I’m using Web APIs using the Data API feature provided by MongoDB. I’m now trying to make the roles and filters work, but when using “Apply When” or filter by documents, I’m unable to get the Expansion “%%request” to work.
What I’m trying to do, is add filters based on request headers or request actions, as follows:
each of them was attempted separately, but none of them seemed to work.
Same thing happened when trying to filter documents by having a document attribute equal a request header.
This is crucial to my app, so can someone please help me with this?
Thanks in advance.