UNPKG

weaviate-client

Version:
17 lines (16 loc) • 467 B
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); }; }