prisma-client-api

Provides Prisma Client API reference for model queries, filters, relations, and transactions.

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/Hugo-Ferrari/finances --skill prisma-client-api-hugo-ferrari
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prisma-client-api
Source: https://github.com/Hugo-Ferrari/finances/tree/main/api/.windsurf/skills/prisma-client-api
Command: npx skills add https://github.com/Hugo-Ferrari/finances --skill prisma-client-api-hugo-ferrari

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing correct Prisma Client queries requires knowing dozens of methods, filter operators, relation patterns, and transaction options. This Skill gives you an authoritative, example-driven reference so you write correct database queries the first time without digging through external documentation. ## Core Features & Use Cases - Complete CRUD Reference: Covers findUnique, findMany, create, update, upsert, delete, bulk operations, aggregations, and groupBy with return-type tables. - Filtering and Query Options: Documents scalar, string, logical, relation, array, and JSON filter operators plus select, include, omit, orderBy, and cursor pagination. - Transactions and Raw SQL: Explains sequential and interactive $transaction patterns, isolation levels, and safe $queryRaw/$executeRaw usage with SQL injection prevention. - Use Case: You need to paginate users by role, include their published posts, and wrap a balance transfer in a serializable transaction. Open the matching reference file and copy the exact typed pattern. ## Quick Start Ask the AI to write a Prisma query that finds all admin users with their published posts, ordered by creation date and paginated by cursor.

Frequently Asked Questions about prisma-client-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I filter records with Prisma Client where clauses?▼

Use the where option with operators like equals, contains, gt, lt, in, and logical combinators AND, OR, NOT. Relation filters such as some, every, and none let you filter by related records, and mode: 'insensitive' enables case-insensitive string matching.

How to paginate results with Prisma findMany?▼

Use take and skip for offset pagination, or cursor-based pagination by passing cursor with the last record's unique field and skip: 1. A negative take value returns records from the end of the result set.

What is the difference between sequential and interactive Prisma transactions?▼

Sequential transactions pass an array of operations to $transaction and run them in order with better performance. Interactive transactions use an async callback with a tx client, supporting conditional logic and dependent operations with configurable isolation levels.

Does Prisma Client support raw SQL queries safely?▼

Yes, $queryRaw and $executeRaw use tagged templates that parameterize interpolated values, preventing SQL injection. Avoid $queryRawUnsafe with string concatenation, and use Prisma.sql and Prisma.join for dynamic query fragments.

Why does Prisma createMany not return the created records?▼

createMany returns only a count object by design. Use createManyAndReturn instead when you need the actual created records back from the database.