Not understanding how to do nested filters with query API

I am looking to do migrate this query from prisma to drizzle
await prisma.marketplaceIntegration.findFirst({
  where: {
    user: { shop: { not: null } }, // this field is a nullable string type (not referencing any table)
    userId: userId
  }
});

I found this related thread (helpFilter for articles with at least one comment), but it wasn't quite clear how to translate this to my query
Discord
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
Was this page helpful?