TagService
TagService
Contains methods relating to Tag entities.
Signature
class TagService {
constructor(connection: TransactionalConnection, listQueryBuilder: ListQueryBuilder)
findAll(ctx: RequestContext, options?: ListQueryOptions<Tag>) => Promise<PaginatedList<Tag>>;
findOne(ctx: RequestContext, tagId: ID) => Promise<Tag | undefined>;
create(ctx: RequestContext, input: CreateTagInput) => ;
async update(ctx: RequestContext, input: UpdateTagInput) => ;
async delete(ctx: RequestContext, id: ID) => Promise<DeletionResponse>;
async valuesToTags(ctx: RequestContext, values: string[]) => Promise<Tag[]>;
getTagsForEntity(ctx: RequestContext, entity: Type<VendureEntity & Taggable>, id: ID) => Promise<Tag[]>;
}
Members
constructor
method
type:
(connection: TransactionalConnection, listQueryBuilder: ListQueryBuilder) => TagService
findAll
method
type:
(ctx: RequestContext, options?: ListQueryOptions<Tag>) => Promise<PaginatedList<Tag>>
findOne
method
type:
(ctx: RequestContext, tagId: ID) => Promise<Tag | undefined>
create
method
type:
(ctx: RequestContext, input: CreateTagInput) =>
update
method
type:
(ctx: RequestContext, input: UpdateTagInput) =>
delete
method
type:
(ctx: RequestContext, id: ID) => Promise<DeletionResponse>
valuesToTags
method
type:
(ctx: RequestContext, values: string[]) => Promise<Tag[]>
getTagsForEntity
method
type:
(ctx: RequestContext, entity: Type<VendureEntity & Taggable>, id: ID) => Promise<Tag[]>