Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

prisma is and isNot

  const users = await prisma.post.findMany({
    where: {
      author: {
        isNot: {
          name: "Bob"
        },
        is: {
          age: {
            gt: 40
          }
        }
      }
    }
  },
})
Source by www.prisma.io #
 
PREVIOUS NEXT
Tagged: #prisma #isNot
ADD COMMENT
Topic
Name
1+7 =