Skip to main content

getConsumersOfSchema

Callable

  • getConsumersOfSchema(directory: string): (path: string) => Promise<Service[]>

  • Returns the consumers of a given schema path.

    @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');