Skip to content

basalt / comments-prisma/src / PrismaCommentStore

Class: PrismaCommentStore ​

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

Implements ​

Constructors ​

Constructor ​

> new PrismaCommentStore(client, options?): PrismaCommentStore

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

Parameters ​

client ​

PrismaCommentsClient

options? ​

PrismaCommentStoreOptions = {}

Returns ​

PrismaCommentStore

Methods ​

create() ​

> create(comment): Promise<void>

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

Parameters ​

comment ​

Comment

Returns ​

Promise<void>

Implementation of ​

CommentStore.create


delete() ​

> delete(tenantId, id): Promise<void>

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

Parameters ​

tenantId ​

string

id ​

string

Returns ​

Promise<void>

Implementation of ​

CommentStore.delete


find() ​

> find(tenantId, id): Promise<Comment | null>

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

Parameters ​

tenantId ​

string

id ​

string

Returns ​

Promise<Comment | null>

Implementation of ​

CommentStore.find


list() ​

> list(tenantId, resourceType, resourceId): Promise<Comment[]>

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

Every comment on a resource (the whole thread), oldest first.

Parameters ​

tenantId ​

string

resourceType ​

string

resourceId ​

string

Returns ​

Promise<Comment[]>

Implementation of ​

CommentStore.list


update() ​

> update(tenantId, id, patch): Promise<Comment | null>

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

Parameters ​

tenantId ​

string

id ​

string

patch ​

CommentPatch

Returns ​

Promise<Comment | null>

Implementation of ​

CommentStore.update

Released under the MIT License.