Query syntax with Turso (in NextJS context)

Hey there,

I guess I'm missing something somewhere.
I'm trying drizzle with libsql driver. When used locally with sqlite database, everything is working fine, but if I want to connect to my turso database, I can successfully get data using the classic ORM apis (db.select().from(tests).limit(1)?.[0]), but I can't get relational query syntax to work (db.query.tests.findFirst()). It always return undefined.

Any clue about what I missed ?
Was this page helpful?