MCPcopy Create free account
hub / github.com/firebase/firebase-tools / extractReadableIndex

Function extractReadableIndex

src/profileReport.ts:69–78  ·  view source on GitHub ↗
(query: Record<string, any>)

Source from the content-addressed store, hash-verified

67}
68
69export function extractReadableIndex(query: Record<string, any>): string {
70 if (query.orderBy) {
71 return query.orderBy;
72 }
73 const indexPath: string[] = _.get(query, "index.path");
74 if (indexPath) {
75 return pathString(indexPath);
76 }
77 return ".value";
78}
79
80export interface ProfileReportOptions {
81 format?: "JSON" | "RAW" | "TXT";

Callers 2

renderUnindexedDataMethod · 0.85

Calls 2

pathStringFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…