Can you get an avg of data with the js library?

I’m trying to do something like

Const {data, error} = await supabase.from(“table).select(“avg(column)).eq(condition)

Is this possible/what’s the syntax for this?
Was this page helpful?