UNPKG

weaviate-client

Version:
15 lines (14 loc) 472 B
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; } }