
Prisma Client Api Filters
- 14 installs
- 8 repo stars
- Updated February 9, 2026
- prisma/cursor-plugin
prisma-client-api-filters documents Prisma where filter operators.
About
The prisma-client-api-filters skill catalogs filter operators for Prisma where clauses. Equality covers implicit match, equals, and not. Comparison provides gt, gte, lt, and lte including combined ranges. String filters add contains, startsWith, endsWith, and insensitive mode. Logical AND, OR, and NOT compose nested conditions. Relation filters use some, every, none, is, and isNot for one-to-one shapes. Array fields support has, hasSome, hasEvery, and isEmpty. JSON path filters target nested keys with equals or string_contains. Full-text search requires @@fulltext indexes. Examples progress from simple email match to combined admin verified queries with relation constraints. Documents equality, comparison, and string operators. Covers AND, OR, and NOT logical composition. Explains relation some, every, and none filters. Includes array and JSON path filter syntax. Notes full-text search index requirement. Correct filter objects for relations, strings, and JSON fields.
- Documents equality, comparison, and string operators.
- Covers AND, OR, and NOT logical composition.
- Explains relation some, every, and none filters.
- Includes array and JSON path filter syntax.
- Notes full-text search index requirement.
Prisma Client Api Filters by the numbers
- 14 all-time installs (skills.sh)
- Ranked #604 of 911 Databases skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
prisma-client-api-filters capabilities & compatibility
- Capabilities
- operator tables by category · relation and array filter examples · full text search note
- Use cases
- database · api development
What prisma-client-api-filters says it does
At least one related record matches
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-client-api-filtersAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 14 |
|---|---|
| repo stars | ★ 8 |
| Last updated | February 9, 2026 |
| Repository | prisma/cursor-plugin ↗ |
How do I filter Prisma queries with where?
Apply Prisma where filters with equality, comparison, string, logical, relation, array, and JSON operators.
Who is it for?
Developers writing complex Prisma findMany where clauses.
Skip if: Skip when queries use only primary key lookups.
When should I use this skill?
User needs filter operators for relations or JSON columns.
What you get
Correct filter objects for relations, strings, and JSON fields.
Files
Filter Conditions and Operators
Filter operators for the where clause.
Equality
// Exact match (implicit)
where: { email: 'alice@prisma.io' }
// Explicit equals
where: { email: { equals: 'alice@prisma.io' } }
// Not equal
where: { email: { not: 'alice@prisma.io' } }Comparison
// Greater than
where: { age: { gt: 18 } }
// Greater than or equal
where: { age: { gte: 18 } }
// Less than
where: { age: { lt: 65 } }
// Less than or equal
where: { age: { lte: 65 } }
// Combined
where: { age: { gte: 18, lte: 65 } }Lists
// In array
where: { role: { in: ['ADMIN', 'MODERATOR'] } }
// Not in array
where: { role: { notIn: ['GUEST', 'BANNED'] } }String Filters
// Contains
where: { email: { contains: 'prisma' } }
// Starts with
where: { email: { startsWith: 'alice' } }
// Ends with
where: { email: { endsWith: '@prisma.io' } }
// Case-insensitive (default for some databases)
where: {
email: {
contains: 'PRISMA',
mode: 'insensitive'
}
}Null Checks
// Is null
where: { deletedAt: null }
// Is not null
where: { deletedAt: { not: null } }
// Using isSet (for optional fields)
where: { middleName: { isSet: true } }Logical Operators
AND (implicit)
// Multiple conditions = AND
where: {
email: { contains: '@prisma.io' },
role: 'ADMIN'
}AND (explicit)
where: {
AND: [
{ email: { contains: '@prisma.io' } },
{ role: 'ADMIN' }
]
}OR
where: {
OR: [
{ email: { contains: '@gmail.com' } },
{ email: { contains: '@prisma.io' } }
]
}NOT
where: {
NOT: {
role: 'GUEST'
}
}
// Multiple NOT conditions
where: {
NOT: [
{ role: 'GUEST' },
{ verified: false }
]
}Combined
where: {
AND: [
{ verified: true },
{
OR: [
{ role: 'ADMIN' },
{ role: 'MODERATOR' }
]
}
],
NOT: { deletedAt: { not: null } }
}Relation Filters
some
At least one related record matches:
// Users with at least one published post
where: {
posts: {
some: { published: true }
}
}every
All related records match:
// Users where all posts are published
where: {
posts: {
every: { published: true }
}
}none
No related records match:
// Users with no published posts
where: {
posts: {
none: { published: true }
}
}is / isNot (1-to-1)
// Users with profile in specific country
where: {
profile: {
is: { country: 'USA' }
}
}
// Users without profile
where: {
profile: {
isNot: null
}
}Array Field Filters
For fields like String[]:
// Has element
where: { tags: { has: 'typescript' } }
// Has some elements
where: { tags: { hasSome: ['typescript', 'javascript'] } }
// Has every element
where: { tags: { hasEvery: ['typescript', 'prisma'] } }
// Is empty
where: { tags: { isEmpty: true } }JSON Filters
// Path-based filter
where: {
metadata: {
path: ['settings', 'theme'],
equals: 'dark'
}
}
// String contains in JSON
where: {
metadata: {
path: ['bio'],
string_contains: 'developer'
}
}Full-Text Search
// Requires @@fulltext index
where: {
content: {
search: 'prisma database'
}
}{
"name": "prisma-client-api-filters",
"version": "7.0.0",
"author": "prisma",
"license": "MIT"
}Related skills
FAQ
What does prisma-client-api-filters do?
prisma-client-api-filters documents Prisma where filter operators.
When should I use prisma-client-api-filters?
User needs filter operators for relations or JSON columns.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.