nestjs/mongoose

Request scope plugin

Closed this issue · 1 comments

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

Hello

I've added nestjs/mongoose recently to my project
But as we have some performance issue in mongo, i would like to add some logging for the mongo request done for each graphql request

Is it possible to scope a mongoose plugin by REQUEST, in order to link it with a graphql request ?

Describe the solution you'd like

be able to debug mongoose with SCOPE REQUEST, so link to the graphql request

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

Due to mongo performance issue, i need to log some debug for mongoose

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.