Prisma · Concept
gt
Prisma Client lets you compare two fields from the same model in a non-unique filter. Use <model>.fields.<field> as the comparison value.
Last updated
Syntax
prisma.<model>.findMany({ where: { <field>: { <operator>: prisma.<model>.fields.<otherField> } } })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
findManyfindUniquefindUniqueOrThrowgroupByhavingbyUsing Raw SQL