leventovL
Convex Community4mo ago
17 replies
leventov

Inline queries from actions

I would like to call some very simple queries and mutations (that do nothing except a single db.get() and db.insert() call, respectively) from an action. These specific query and mutation are not going to be used anywhere except this action. Creating a separate internalQuery() and internalMutation() for each with full signature specification feels like too much ceremony and hair splitting. Is there a way to do db.get() and db.insert() directly from an action, or another way of defining "inline query and mutation" right within the action block without much boilerplate?

There is an old thread: general but I’m not sure it is still relevant.
Was this page helpful?