weaviate-client
Version:
JS/TS client for Weaviate
15 lines (14 loc) • 472 B
JavaScript
import { CommandBase } from '../validation/commandBase.js';
export default class TenantsCreator extends CommandBase {
constructor(client, className, tenants) {
super(client);
this.validate = () => {
// nothing to validate
};
this.do = () => {
return this.client.postReturn(`/schema/${this.className}/tenants`, this.tenants);
};
this.className = className;
this.tenants = tenants;
}
}