Drizzle TeamDT
Drizzle Team•3y ago
JT

how do you pass a query in a typesafe way?

Let's say i want to paginate a query, so I'm going to pass a query such as this to a pagination function

db.select().from(users).where(like(users.email, '%@gmail.com'))

And then that pagination function will add .limit() and .offset() to the query. What type would I put on the function argument?
Was this page helpful?