Optionally specify a version to add the data store to a specific version of the service.
@example
import utils from'@eventcatalog/utils'; // Adds an data store to the service const{ addDataStoreToService }=utils('/path/to/eventcatalog'); // Adds a new data store (orders-db) that the InventoryService will write to awaitaddDataStoreToService('InventoryService','writesTo',{ id:'orders-db', version:'2.0.0'}); *// Adds a new data store (OrderComplete) that the InventoryService will read from awaitaddDataStoreToService('InventoryService','readsFrom',{ id:'orders-db', version:'1.0.0'});
Add a data store to a service by it's id.
Optionally specify a version to add the data store to a specific version of the service.