Μετάβαση στο περιεχόμενο

REQUEST_KIND

Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.

const REQUEST_KIND: typeof REQUEST_KIND

Defined in: packages/pipeline/src/create-pipeline.ts:50

Brand by which a request tells a pipeline its kind, so a wrapped method needs no kind option; the request’s class name then names the operation. @cqrs-ddd/core puts it on BaseCommand, BaseQuery and DomainEvent; any class can declare it.

class GetPriceQuery {
get [REQUEST_KIND]() {
return 'query' as const;
}
constructor(readonly sku: string) {}
}