English
Appearance
basalt / comments-prisma/src / PrismaCommentStore
Defined in: comments-prisma/src/index.ts:118
CommentStore
> new PrismaCommentStore(client, options?): PrismaCommentStore
client
options?
PrismaCommentStore
Defined in: comments-prisma/src/index.ts:121
PrismaCommentsClient
PrismaCommentStoreOptions = {}
PrismaCommentStoreOptions
{}
> create(comment): Promise<void>
comment
Promise
void
Defined in: comments-prisma/src/index.ts:128
Comment
Promise<void>
CommentStore.create
create
> delete(tenantId, id): Promise<void>
tenantId
id
Defined in: comments-prisma/src/index.ts:176
string
CommentStore.delete
delete
> find(tenantId, id): Promise<Comment | null>
null
Defined in: comments-prisma/src/index.ts:147
Promise<Comment | null>
CommentStore.find
find
> list(tenantId, resourceType, resourceId): Promise<Comment[]>
resourceType
resourceId
Defined in: comments-prisma/src/index.ts:152
Every comment on a resource (the whole thread), oldest first.
Promise<Comment[]>
CommentStore.list
list
> update(tenantId, id, patch): Promise<Comment | null>
patch
Defined in: comments-prisma/src/index.ts:160
CommentPatch
CommentStore.update
update
basalt / comments-prisma/src / PrismaCommentStore
Class: PrismaCommentStore
Defined in: comments-prisma/src/index.ts:118
Implements
CommentStoreConstructors
Constructor
> new PrismaCommentStore(
client,options?):PrismaCommentStoreDefined in: comments-prisma/src/index.ts:121
Parameters
client
PrismaCommentsClientoptions?
PrismaCommentStoreOptions={}Returns
PrismaCommentStoreMethods
create()
> create(
comment):Promise<void>Defined in: comments-prisma/src/index.ts:128
Parameters
comment
CommentReturns
Promise<void>Implementation of
CommentStore.createdelete()
> delete(
tenantId,id):Promise<void>Defined in: comments-prisma/src/index.ts:176
Parameters
tenantId
stringid
stringReturns
Promise<void>Implementation of
CommentStore.deletefind()
> find(
tenantId,id):Promise<Comment|null>Defined in: comments-prisma/src/index.ts:147
Parameters
tenantId
stringid
stringReturns
Promise<Comment|null>Implementation of
CommentStore.findlist()
> 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
stringresourceType
stringresourceId
stringReturns
Promise<Comment[]>Implementation of
CommentStore.listupdate()
> update(
tenantId,id,patch):Promise<Comment|null>Defined in: comments-prisma/src/index.ts:160
Parameters
tenantId
stringid
stringpatch
CommentPatchReturns
Promise<Comment|null>Implementation of
CommentStore.update