You can optionally specify if you want to get the latest version of the queries.
@example
import utils from'@eventcatalog/utils'; const{ getQueries }=utils('/path/to/eventcatalog'); // Gets all queries (and versions) from the catalog const queries =awaitgetQueries(); // Gets all queries (only latest version) from the catalog const queries =awaitgetQueries({ latestOnly:true}); // Gets all queries with the schema attached const queries =awaitgetQueries({ attachSchema:true});
Returns all queries from EventCatalog.
You can optionally specify if you want to get the latest version of the queries.