You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
bug
What is the current behavior?
when providing connecting by mongoose.connect('server', {mongos: true}, () => {});,
I get a deprecation warning:
the server/replset/mongos options are deprecated, all their options are supported at the top level of the options object [poolSize,ssl,sslValidate,sslCA,sslCert,sslKey,sslPass,sslCRL,autoReconnect,noDelay,keepAlive,keepAliveInitialDelay,connectTimeoutMS,family,socketTimeoutMS,reconnectTries,reconnectInterval,ha,haInterval,replicaSet,secondaryAcceptableLatencyMS,acceptableLatencyMS,connectWithNoPrimary,authSource,w,wtimeout,j,forceServerObjectId,serializeFunctions,ignoreUndefined,raw,bufferMaxEntries,readPreference,pkFactory,promiseLibrary,readConcern,maxStalenessSeconds,loggerLevel,logger,promoteValues,promoteBuffers,promoteLongs,domainsEnabled,checkServerIdentity,validateOptions,appname,auth,user,password,authMechanism,compression,fsync,readPreferenceTags,numberOfRetries,auto_reconnect,minSize]
Do you want to request a feature or report a bug?
bug
What is the current behavior?
when providing connecting by
mongoose.connect('server', {mongos: true}, () => {});
,I get a deprecation warning:
I get that the the
mongos: {...}
option is deprecated, but on the other hand this is something different - it's a boolean value that is described in the docs! Ref: http://mongoosejs.com/docs/connections.html#mongos_connectionsWhat is the expected behavior?
The expected behavior is unclear, because I do not get whether the
mongos: true
option is even relevant anymore.Please mention your node.js, mongoose and MongoDB version.
Reproducable on:
Node 7.10
MongoDB version: 3.4.9
Mongoose: 4.11 AND 5.0.0-rc2
The text was updated successfully, but these errors were encountered: