anyone have done convex-helper triggers + convex-ents
can you share me how the configuration code would look like
5 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!
Oh yeah, this was something i asked in the depercated beta area... There were a couple ways to do this, and i could probably clean up my import... it depends on the design of your custom context, mine is rather complex as i destructive the query payload of a user session Id. It wasnt quite as confusing i thought.
triggers go before the ents code. I picked the cleanest option imho. Ian also offered these configurations..
triggers go before the ents code. I picked the cleanest option imho. Ian also offered these configurations..
hey @ampp thanks for sharing this, seems to work
but my triggers are not using ents' mutation context, just vanilla convex's context
I'd try to avoid doing custom mutations on top of other custom mutations, and instead use the
triggers.wrapDB
explicitly in your sessionMutation, and make helper functions where applicableYeah so this example is the absolute best practice right?