Error when calling a function of query type

Error message: Did you forget to include a return statement?

Hi @erickalmeidaptc,

Welcome to Retool!

Because it's a function, you just need to call it, not access it's data property.

Try changing that bit of code to

const seqId = await getSequenceId()
return seqId
1 Like