Equality and Negation
- equals: Matches records where the field value is equal to the specified value.
- not: Matches records where the field value is not equal to the specified value. Can also be used to negate other conditions.
Example:
$users = $prisma->user->findMany([
'where' => [
'status' => ['equals' => 'active'],
'roleId' => ['not' => 1]
]
]);