UNPKG

weaviate-client

Version:
17 lines (16 loc) 519 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class GraphQLBm25 { constructor(args) { this.properties = args.properties; this.query = args.query; } toString() { let args = [`query:${JSON.stringify(this.query)}`]; // query must always be set if (this.properties !== undefined) { args = [...args, `properties:${JSON.stringify(this.properties)}`]; } return `{${args.join(',')}}`; } } exports.default = GraphQLBm25;