ayasesoraA
Convex Community4mo ago
6 replies
ayasesora

Using node runtime in Convex Triggers

The Convex helper library providers triggers which essentially wraps the useMutations. There are some actions that I would like to run for each trigger. However, this action need to be run in the nodejs environment due to the use of third party api (I am using
Ably
in my case). However, if I mark the file with
use node
for the file that I define my triggers action, it means that the wrapped
useMutation
is also marked with
use node
which violates the Convex rules about mutations. How to get around this?
Was this page helpful?