function findIndexForField<TKey>(
collection,
fieldPath,
compareOptions?,
canUse?): IndexReader<TKey> | undefined;Defined in: packages/db/src/utils/index-optimization.ts:59
Finds the first usable index matching a field path and comparison options.
TKey extends string | number
CollectionLike<any, TKey>
string[]
CompareOptions
(index) => boolean
IndexReader<TKey> | undefined