I can’t see where i pass the useMasterKey on a query in my cloud function when using an aggregate. Looking at the typescript definitions it doesn’t seem to allow any more parameters other than the array of pipeline options.
var nfts = await nftsQuery.aggregate(pipeline);