Function: getConsumersOfSchema()
getConsumersOfSchema(
directory): (path) =>Promise<MessageParticipant[]>
Defined in: messages.ts:149
Returns the consumers of a given schema path.
Parameters
| Parameter | Type |
|---|---|
directory | string |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
path | string |
Returns
Promise<MessageParticipant[]>
Example
import utils from '@eventcatalog/utils';
const { getConsumersOfSchema } = utils('/path/to/eventcatalog');
// Returns the consumers of a given schema path
const consumers = await getConsumersOfSchema('events/InventoryAdjusted/schema.json');