()
| 1139 | return await this.ensureIndexes({ _automatic: true }); |
| 1140 | }; |
| 1141 | const _createSearchIndexes = async() => { |
| 1142 | const autoSearchIndex = utils.getOption( |
| 1143 | 'autoSearchIndex', |
| 1144 | this.schema.options, |
| 1145 | conn.config, |
| 1146 | conn.base.options |
| 1147 | ); |
| 1148 | if (!autoSearchIndex) { |
| 1149 | return; |
| 1150 | } |
| 1151 | |
| 1152 | return await this.createSearchIndexes(); |
| 1153 | }; |
| 1154 | const _createCollection = async() => { |
| 1155 | let autoCreate = utils.getOption( |
| 1156 | 'autoCreate', |
no test coverage detected
searching dependent graphs…