weaviate-client
Version:
JS/TS client for Weaviate
18 lines (17 loc) • 591 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const commandBase_js_1 = require("../validation/commandBase.js");
class TenantsCreator extends commandBase_js_1.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;
}
}
exports.default = TenantsCreator;