MCPcopy Create free account
hub / github.com/axe-api/axe-api / parseCondition

Method parseCondition

packages/axe-api/src/Services/QueryService.ts:372–387  ·  view source on GitHub ↗
(content: any)

Source from the content-addressed store, hash-verified

370 }
371
372 private parseCondition(content: any): NestedWhere {
373 if (Array.isArray(content)) {
374 return this.parseConditions(content);
375 }
376
377 if (!content) {
378 return [];
379 }
380
381 const wheres: IWhere[] = [];
382 for (const key in content) {
383 wheres.push(this.parseConditionObject(content, key));
384 }
385
386 return wheres;
387 }
388
389 private parseConditionObject(content: any, key: string): IWhere {
390 const where: IWhere = {

Callers 2

parseSectionsMethod · 0.95
parseConditionsMethod · 0.95

Calls 3

parseConditionsMethod · 0.95
parseConditionObjectMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected