What problem does it solve?
This Skill reduces mistakes and guesswork when building Prisma Client queries by consolidating CRUD methods, query options, filtering operators, relation patterns, transactions, and raw-query safety into one reference.
Core Features & Use Cases
- Prisma CRUD model queries: Use
findUnique, findMany, create, update, upsert, delete, plus aggregation (count, aggregate, groupBy) with expected return semantics.
- Query shaping with options: Control results via
select, include, omit, orderBy, take, skip, cursor, and distinct.
- Filtering and relations: Apply scalar operators, logical operators, relation filters (
some/every/none, is/isNot), and nested reads/writes.
- Transactions and raw SQL guidance: Choose between sequential vs interactive
$transaction, and use $queryRaw/$executeRaw with parameterization and injection prevention.
- Client lifecycle and extensions: Configure PrismaClient with constructor options and use
$connect, $disconnect, $on, and $extends.
Quick Start
Use the prisma-client-api skill when you need to implement a safe Prisma database operation such as retrieving records with where filters, select/include shaping, and an optional transaction or raw query.