You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{// this could be specific to the adapterstenantStrategy: {// if these keys are not preset we throw validation error// and based on tenant strategy we might have to add these to every query we make to dbtenantKeys: ['accountId'],// or (config, params) => ['accountId']// for mongo adapter return new dbgetDB: (config,params)=>config.client.db(`${config.collection}-${params.accountId}`),// for mongo adapter return new collectiongetCollection: (config,params)=>config.db.collection(`${config.collection}-${params.accountId}`),// for mongoosegetModel: (config,params)=>config.model,// if exists will override the adapter find or update the params and call adapter's findfind: ()=>null// ... other methods}}
And tenant strategies can be implemented by the adapters itself, example incase of mongoose, whether to use that as shardKey or use a separate collection or use a separate db
The text was updated successfully, but these errors were encountered:
Allow support of multi tenants
In settings
And tenant strategies can be implemented by the adapters itself, example incase of mongoose, whether to use that as
shardKey
or use aseparate collection
or use aseparate db
The text was updated successfully, but these errors were encountered: