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) => ;
update(ctx: RequestContext, input: UpdateTagInput) => ;
delete(ctx: RequestContext, id: ID) => Promise<DeletionResponse>;
valuesToTags(ctx: RequestContext, values: string[]) => Promise<Tag[]>;
getTagsForEntity(ctx: RequestContext, entity: Type<VendureEntity & Taggable>, id: ID) => Promise<Tag[]>;
}
constructor
method
(connection: TransactionalConnection, listQueryBuilder: ListQueryBuilder) => TagService
findAll
method
(ctx: RequestContext, options?: ListQueryOptions<Tag>) => Promise<PaginatedList<Tag>>
findOne
method
(ctx: RequestContext, tagId: ID) => Promise<Tag | undefined>
create
method
(ctx: RequestContext, input: CreateTagInput) =>
update
method
(ctx: RequestContext, input: UpdateTagInput) =>
delete
method
(ctx: RequestContext, id: ID) => Promise<DeletionResponse>
valuesToTags
method
(ctx: RequestContext, values: string[]) => Promise<Tag[]>
getTagsForEntity
method
(ctx: RequestContext, entity: Type<VendureEntity & Taggable>, id: ID) => Promise<Tag[]>