SaraS
Convex Community6mo ago
2 replies
Sara

The possibility of changing the `ctx` to add more data onto it

so, I'm exploring the possibility of passing the ctx.auth.userId and ctx.cache to use in multiple queries in my code. just out of pure curiosity, can I wrap the ctx to serve these data?
Also, say if I have a value that I need to fetch only once, and want it to be there across files/folders in my backend, can I export it once and call it from multiple files?
Was this page helpful?