You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.
This is koa-middleware, so by nature you have to have the ctx to interact with it.
If you're wanting to interact with the database outside of the ctx, then I don't think this package is the right solution for that use case (I also wouldn't recommend choosing to pass the ctx around everywhere its needed either)
Unfortunately, I don't have an open source example of how I abstracted this package into it's own files in my project so that it could be used this way.
Is there a way to interact with the db outside of koa's ctx? For instance, I want to do something like
...but I do not have access to
ctx.model
where I want to update this. Any ideas?The text was updated successfully, but these errors were encountered: