I am trying to execute a pipeline via the data api with api-key auth and I am getting this error:
Failed to aggregate documents: FunctionError: aggregation stage "$geoNear" is not supported in a user context. A pipeline with this stage must be run as a System User
The api key is User Type:server tho. Has anyone else experience this?