()
| 59 | } |
| 60 | |
| 61 | function throwReadPreferenceError() { |
| 62 | throw new MongooseError( |
| 63 | 'MongoDB prohibits index creation on connections that read from ' + |
| 64 | 'non-primary replicas. Connections that set "readPreference" to "secondary" or ' + |
| 65 | '"secondaryPreferred" may not opt-in to the following connection options: ' + |
| 66 | 'autoCreate, autoIndex' |
| 67 | ); |
| 68 | } |
| 69 | |
| 70 | module.exports = processConnectionOptions; |
no outgoing calls
no test coverage detected