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

Method parseFields

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

Source from the content-addressed store, hash-verified

312 }
313
314 private parseFields(content: any): string[] {
315 if (!content) {
316 return [];
317 }
318
319 const strContent = content as string;
320
321 // User should be able to select "all" fields.
322 if (strContent.trim() === "*") {
323 return ["*"];
324 }
325
326 const fields = strContent.split(",");
327 fields.forEach((field) => {
328 this.shouldBeAcceptableColumn(field);
329 });
330 return fields;
331 }
332
333 private parseSortingOptions(content: any): ISortField[] {
334 // If there is not any sorting options, we don't have to return any value

Callers 1

parseSectionsMethod · 0.95

Calls 1

Tested by

no test coverage detected