UNPKG

weaviate-client

Version:
17 lines (16 loc) 448 B
export default class GraphQLGroup { constructor(args) { this.args = args; } toString() { let parts = []; if (this.args.type) { // value is a graphQL enum, so doesn't need to be quoted parts = [...parts, `type:${this.args.type}`]; } if (this.args.force) { parts = [...parts, `force:${this.args.force}`]; } return `{${parts.join(',')}}`; } }