function findIndexForField<TKey>(
collection,
fieldPath,
compareOptions?):
| IndexInterface<TKey>
| undefined;Defined in: packages/db/src/utils/index-optimization.ts:37
Finds an index that matches a given field path
TKey extends string | number
CollectionLike\<`any`, `TKey`\>
string[]
CompareOptions
| IndexInterface\<`TKey`\> | undefined