Function umbQueryMapperForJsonPaths
umbQueryMapperForJsonPaths<T>( scopePaths: string[], scopeData: T[], queryConstructor: (entry: T) => string, mapper?: ( scopedPaths: string[], propertyData: undefined | T, ) => Promise<string[]>,): Promise<string[]> Parameters
- scopePaths: string[]
- scopeData: T[]
- queryConstructor: (entry: T) => string
Optional
mapper: (scopedPaths: string[], propertyData: undefined | T) => Promise<string[]>
Returns Promise<string[]>
- the paths, including the once mapped by the scoped mapper. Notice the order is kept.
Helper method to replace paths index with queries and additionally map the paths.