Skip to content

Parse needs to allow autoSelectFamily config for the MongoDB Driver #9578

Closed
@pocketcolin

Description

@pocketcolin

Issue Description

Node Mongo driver package released a breaking change in a minor release (v6.9) that switched the autoSelectFamily default value to true while it was previously false. Parse 7 updated the Mongo version from 4 to 6.12 so people upgrading to Parse 7 are going to be impacted by this change and without the databaseOption they'll be stuck with a new configuration.

There's a discussion about this here: https://www.mongodb.com/community/forums/t/i-keep-getting-error-when-i-try-connecting-node-to-mongodb/243422/22?page=2

Steps to reproduce

  1. Try to set autoSelectFamily: true in databaseOptions and run server

Actual Outcome

Not able to set autoSelectFamily, get error:

error: Invalid Option Keys Found: databaseOptions.autoSelectFamily

Expected Outcome

No error, Parse uses the database option.

Environment

Server

  • Parse Server version: 7 or 8

Database

  • System (MongoDB or Postgres): MongoDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:released-alphaReleased as alpha versiontype:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions