timahuna
timahuna2y ago

What is a function call?

Just looking at the pricing section of convex. What is considered a function call? Is it just user defined functions (queries, mutations, actions)? So if I define a query that does multiple fetches, would I just be charged for the outer query? Or for each fetch?
5 Replies
jamwt
jamwt2y ago
The query call is one function call. You’re not charged per database access, for example. So yep, the outer query. .
timahuna
timahunaOP2y ago
Woah. that's crazy awesome 🤯 Thanks @jamwt What happens if an action calls multiple queries/mutations? I'm guessing it's 1 (for the action) + (# of queries) + (# of mutations).
jamwt
jamwt2y ago
Yep
timahuna
timahunaOP2y ago
I'm guessing internal* functions are counted the same as any other function type (queries, mutations, actions).
jamwt
jamwt2y ago
Yep, Only differ by security/visibility

Did you find this page helpful?