Realm Trigger Event Projection should support exclusion
Realm triggers with a projections must include "operationType": 1. This makes excluding fields impossible because, according to the documentation:
if you exclude fields, you cannot also specify the inclusion of fields
The only work around we have found is to list every single field in the database and this would require an update anytime we add another field to the model. This is quite cumbersome and should be easily resolved with a simple exclusion.
-
Mark commented
2024 and this is still an issue.
-
Leandro commented
I have the same issue exact issue, I requested help via support and they created an internal ticket to work on it but it may take time until they work on it. I created this forum post as well: https://www.mongodb.com/community/forums/t/realm-trigger-with-exclusion-projection-requesting-operationtype-t/133260
Hopefully it will be solved soon