letmasterSave=awaitg.sys.db.gen.masterSaveGen({instance:"mysql_8",database:"inventory",collection:"customers",saveData:{"city_name":"Wembley",//city_name save in mysql database"state_id":{"state_name":"London",//state_name save in maria database"country_id":{"country_name":"UK"//country_name save in postGreSql database}}},headers:{"x-am-response-case":"capitalCase"}});
instance: "crm::acme" works on the database of the tenant acme of the multi-tenant instance crm.
With instance: "crm", the call works on the database of the tenant of the request: a custom API called with the x-am-tenant-username header passes it on to the APIs it calls. A request without a tenant works on the structure database.