ansaA
Convex Community4y ago
20 replies
ansa

Helper Functions

can we run queries within queries? there's some logic that we want to share between two different queries, but we're not sure what the best way to go about this is. basically we have an admin table, and before all the admin operations that require admin privileges, we want to query the admin table and check that the user is there. we would like to put this into one method we could call from all the "privileged" operations. how should we do this?
Was this page helpful?