Suggested way to query equivalent to prisma's findUnique

In prisma, if I specify an index on 3 fields (say
field1
,
field2
, and
field3
), I am able to query on that unique combination and do something like so:
await prisma.someTable.findUnique({
  where: {
    field1_field2_field3: { // This type requires all 3 specified
      field1: 'asdf',
      field2: 'asdf',
      field3: 'asdf'
    }
  }
});

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.
Was this page helpful?