Closed ericuldall closed 7 months ago
Still not sure why this is the case but I found a work around accessing the mongo client directly:
const client = await this.app.get('mongodbClient');
const agg = await client.collection(query.collection).aggregate([{ $search }]);
Steps to reproduce
I'm running the following query
The Error
I'd like to be able to run the pipeline and subsequently have all the hooks run. Is this possible?