How to check if a row exists in Drizzle?

According to this StackOverflow post:
https://stackoverflow.com/questions/7471625/fastest-check-if-row-exists-in-postgresql
The most performant way to check if a row exists is as follows:
SELECT EXISTS(SELECT 1 FROM foo WHERE id = 123)

How do you accomplish this in Drizzle?
Was this page helpful?