dbRules functions not being triggered
I have the following:
And this:
I have a mutation that adds edits:
But when i trigger it and an edit is created I don't see any logs put inside the
insert
function in the rules, and it doesn't seem to be used.. How is this possible?4 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Can you confirm other similar rules are working as expected? Also, obligatory, are you running convex dev?
I'm not the most familiar with zCustomMutation but this looks like a typo:
return { ctx: { user, workspace }, db: safeDb, args: {...args}}
Should it be this?
return { ctx: { user, workspace, db: safeDb }, args: {...args}}
Savior! I overlooked this! Thank you Lee!