본문으로 건너뛰기

함수: findIndexForField()

function findIndexForField<TKey>(
collection,
fieldPath,
compareOptions?):
| IndexInterface<TKey>
| undefined;

정의 위치: packages/db/src/utils/index-optimization.ts:45

지정된 필드 경로와 일치하는 인덱스를 찾습니다

타입 매개변수

TKey

TKey extends string | number

매개변수

collection

CollectionLike&lt;any, TKey>

fieldPath

string[]

compareOptions?

CompareOptions

반환값

| IndexInterface&lt;TKey> | undefined