getEntities CallablegetEntities(directory: string): (options?: { latestOnly?: boolean }) => Promise<Entity[]>Returns all entities from EventCatalog. You can optionally specify if you want to get the latest version of the entities.@exampleimport utils from '@eventcatalog/utils';const { getEntities } = utils('/path/to/eventcatalog');// Gets all entities (and versions) from the catalogconst entities = await getEntities();// Gets all entities (only latest version) from the catalogconst entities = await getEntities({ latestOnly: true });
Returns all entities from EventCatalog.
You can optionally specify if you want to get the latest version of the entities.