You can optionally specify a version to get a specific version of the query
@example
import utils from'@eventcatalog/utils'; const{ getQuery }=utils('/path/to/eventcatalog'); // Gets the latest version of the event const event =awaitgetQuery('GetOrder'); // Gets a version of the event const event =awaitgetQuery('GetOrder','0.0.1'); // Gets the query with the schema attached const event =awaitgetQuery('GetOrder','0.0.1',{ attachSchema:true});
Returns a query from EventCatalog.
You can optionally specify a version to get a specific version of the query