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