Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

Commit

Permalink
feat(mongo): enable useUnifiedTopology
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 10, 2019
1 parent ea1d063 commit 2bfd1c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mongo/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ async function connect (mongoose, connectionName, connectionOpts) {
options = {
useNewUrlParser: true,
useCreateIndex: true,
useUnifiedTopology: true,
...options
}

Expand All @@ -81,7 +82,7 @@ async function connect (mongoose, connectionName, connectionOpts) {
// $logger helper
conn.$logger = isDefault
? consola
: consola.withTag(connectionName)
: consola.withTag(connectionName || 'unnamed')

// Log connection events
logConnectionEvents(conn)
Expand Down

0 comments on commit 2bfd1c0

Please sign in to comment.