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