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
/** * Real database connection from a connection pool used to perform queries. */
databaseConnection: Db;// -------------------------------------------------------------------------// Constructor// -------------------------------------------------------------------------constructor(connection: Connection,databaseConnection: Db){this.connection=connection;this.databaseConnection=databaseConnection;this.broadcaster=newBroadcaster(this);}
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[x]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
cockroachdb
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
MongoQueryRunner.databaseConnection
has the typeDb
while it should actually beMongoClient
.Where
databaseConnection
is defined in src/driver/mongodb/MongoQueryRunner.ts:Where it is created in src/driver/mongodb/MongoDriver.ts:
Reference to
mongodb.MongoClient.connect
:https://mongodb.github.io/node-mongodb-native/3.1/api/MongoClient.html#~connectCallback
The text was updated successfully, but these errors were encountered: