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