Equality

Filter records using equality and negation conditions for precise data retrieval.

Equality and Negation

The equals and not operators allow you to match or exclude records based on exact field values. equals matches records where the field value is exactly the given value. not matches records where the field value does not equal the given value, and can also be used to negate advanced filtering conditions.

Example Usage

$users = $prisma->user->findMany([
    'where' => [
        'status' => [
            'equals' => 'active'
        ],
        'roleId' => [
            'not' => 1
        ]
    ]
]);