Passing Context for Dependency Injection
Is there a standard pattern for passing the context object for database interaction to functions?
When using Prisma, I can always pass the Prisma client to another function and have full type suggestions. when using wasp, routes are given a "context" object with an array of accessible entities that are defined in the wasp definition.
is there a way to pass around the context object with typing to other functions in the same way that is possible with standard Prisma?
wasp: version: 0.13.2.
WSL2, Ubuntu 22.
When using Prisma, I can always pass the Prisma client to another function and have full type suggestions. when using wasp, routes are given a "context" object with an array of accessible entities that are defined in the wasp definition.
is there a way to pass around the context object with typing to other functions in the same way that is possible with standard Prisma?
wasp: version: 0.13.2.
WSL2, Ubuntu 22.