(collection: CollectionImpl<any, any, any, any, any>)
| 10 | } |
| 11 | |
| 12 | function shouldAutoIndex(collection: CollectionImpl<any, any, any, any, any>) { |
| 13 | // Only proceed if auto-indexing is enabled |
| 14 | // Note: autoIndex: 'eager' without defaultIndexType is caught at construction time |
| 15 | // in CollectionImpl, so we don't need to check for it here. |
| 16 | return collection.config.autoIndex === `eager` |
| 17 | } |
| 18 | |
| 19 | export function ensureIndexForField< |
| 20 | T extends Record<string, any>, |
no outgoing calls
no test coverage detected