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