Skip to content

basalt / comments-prisma/src / PrismaCommentsClient

Interface: PrismaCommentsClient ​

Defined in: comments-prisma/src/index.ts:43

The minimal Prisma delegate surface the store calls — a real PrismaClient with the Comment model is assignable, so pass it directly. Method arguments are typed any (Prisma's generated method generics can't be reproduced by a hand-written interface); return types stay precise.

Properties ​

comment ​

> comment: object

Defined in: comments-prisma/src/index.ts:44

create() ​

> create(a): Promise<PComment>

Parameters ​
a ​

any

Returns ​

Promise<PComment>

deleteMany() ​

> deleteMany(a): Promise<{ count: number; }>

Parameters ​
a ​

any

Returns ​

Promise<{ count: number; }>

findMany() ​

> findMany(a): Promise<PComment[]>

Parameters ​
a ​

any

Returns ​

Promise<PComment[]>

findUnique() ​

> findUnique(a): Promise<PComment | null>

Parameters ​
a ​

any

Returns ​

Promise<PComment | null>

updateMany() ​

> updateMany(a): Promise<{ count: number; }>

Parameters ​
a ​

any

Returns ​

Promise<{ count: number; }>

Released under the MIT License.