How to check if an entry already exist?
I found this query to check if an entry in the table already exists:
Which returns the response:
but how do I use it in a typescript
Which returns the response:
Result(1) [ { exists: false } ]but how do I use it in a typescript
if statement to run conditional code?