[Convex Ents] Cannot use insert after adding rules
I added a custom queryCtx and mutationCtx to use rules and now I cannot longer use insert.
3 Replies
Your code:
async function mutationCtx(baseCtx: QueryCtx) {
Should be:
async function mutationCtx(baseCtx: MutationCtx) {
Oh no
I'm so sorry
For real
It's ok, this setup is unfortunately trickier than most other Convex code.