Error when calling RPC with function name

I am trying to get the sum of some columns in my database. Looks like I have to use an RPC function to do so. I created the function in the SQL Editor but when I try to call it as specified in the docs in my client I receive a typescript error. See screenshot. Any thoughts?
Screen_Shot_2022-11-09_at_12.53.36_AM.png
Was this page helpful?