Apparently, the issue is on version 6.9.0 which contains a breaking change:

Here are two ways I found to overcome this issue:

  1. downgrading to a lower version (6.8.2 for ex)
  2. passing autoSelectFamily: false overriding the default value of true

Hope someone on MongoDB will see this discussion and revert this breaking change, or alternatively - document this as a breaking change on their release notes.

P.S.
I would totally understand if this new behavior was communicated on previous release notes, allowing developers to get prepared for that (+ adding a runtime warning might do as well), but since I didn’t find any evidence for that - it is a breaking change published out on 6.9.0 without any prior notification.

7 Likes