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
{{ message }}
This repository was archived by the owner on Oct 27, 2020. It is now read-only.
mongodb.connect method accepts 3 arguments url, options and callback. In the connect method of the module settings object is passed as options. So some of the fields are not supported by mongodb client.
Settings is something that loopback passes from datasources.[env].json when creating a datasource.
Maybe it's a good idea to pass settings.options instead of the entire object to mongodb.connect?
In datasources.[env].json:
connect: (callback)->self= @
if @dbprocess.nextTick->ifcallbackcallbacknull,self.dbelsemongodb.MongoClient.connect @settings.url, @settings.options,(err,db)->ifnoterrdebug'Mongo connection established: '+self.settings.urlself.db=dbifcallbackcallbackerr,db
Annoying warning:
the options [connector] is not supported
the options [hostname] is not supported
the options [port] is not supported
the options [debug] is not supported
the options [url] is not supported