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