(entity: string, field: string)
| 414 | } |
| 415 | |
| 416 | isIndexed(entity: string, field: string): boolean { |
| 417 | const indexes = this.modelProvider.getModel(entity).model.options.indexes ?? []; |
| 418 | |
| 419 | return ( |
| 420 | indexes.findIndex((idx) => { |
| 421 | const matchingField = idx.fields?.find((f) => { |
| 422 | const fieldName = (f as any).name ?? f; |
| 423 | return camelCase(fieldName) === customCamelCaseGraphqlKey(field); |
| 424 | }); |
| 425 | return !!matchingField; |
| 426 | }) > -1 |
| 427 | ); |
| 428 | } |
| 429 | |
| 430 | isIndexedHistorical(entity: string, field: string): boolean { |
| 431 | const indexes = this.modelProvider.getModel(entity).model.options.indexes ?? []; |
no test coverage detected