Skip to main content

getTeam

Callable

  • getTeam(catalogDir: string): (id: string) => Promise<undefined | Team>

  • Returns a team from EventCatalog.

    @example
    import utils from '@eventcatalog/utils';

    const { getTeam } = utils('/path/to/eventcatalog');

    // Gets the team with the given id
    const team = await getTeam('eventcatalog-core-team');