Hi,
I’m using “realm-web”: “^1.1.0” on ReactJS. I’m trying to convert my queries to use $facet to reduce my queries. The results that I’m getting from $facet queries are nonexistent or a lot lower than running the queries by themselves. I ran a basic aggregate in the Atlas GUI and with the Realm SDK. I get 291 from the GUI vs 115 in SDK. What’s causing the inconsistency? I generated the aggregate in the GUI and copy/pasted into my SDK.
[ { '$match': { 'email': 'test@email.com' } }, { '$facet': { 'attempt': [ { '$count': 'count' } ] } } ]