A Feathers service adapter for the Prisma ORM, enabling CRUD operations via Feathers methods (find, get, create, update, patch, remove) with support for Prisma-specific features like relation eager loading ($eager), full-text search ($search), and raw Prisma filters ($prisma). Current stable version is 0.7.0, requiring Prisma v5 and Feathers v4. Release cadence is moderate with breaking changes between major Prisma version bumps. Key differentiators: integrates Feathers query syntax with Prisma's powerful filtering, allows batched operations, and provides a whitelist-based safety model for allowed query operators.
npm install feathers-prismaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Set up a Feathers app with Prisma adapter, configure pagination, and perform a simple find with eager loading.
Add the required operator names to the 'whitelist' array in service options.
Downgrade to v0.6.0 if using Prisma v3, or upgrade Prisma to v5.
Replace $rawWhere with $prisma in query objects.
Specify the methods you want to allow multi: ['create', 'patch', 'remove'] in service options.
Implement custom error middleware or use Feathers hooks to map Prisma errors.
Use import { service } from 'feathers-prisma' instead of require().Provide a model option: { model: 'message' }.Add '$eager' to the whitelist array in the service options.
Include 'create' in the multi array: multi: ['create'].