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