Suggested way to query equivalent to prisma's findUnique
In prisma, if I specify an index on 3 fields (say
Is there anything analogous in drizzle? The only workaround I see online is to just create a new field to represent the index, but that seems very hacky.
field1, field2, and field3), I am able to query on that unique combination and do something like so:Is there anything analogous in drizzle? The only workaround I see online is to just create a new field to represent the index, but that seems very hacky.