Skip to content

Mongo.setConnectionOptions must run before packages that declare Mongo collections are loaded #7455

@mjmasn

Description

@mjmasn

When using one or more packages that declare a Mongo collection (for example accounts-base), it isn't possible to call Mongo.setConnectionOptions in the main app code or imports directory. The only workaround is to create a new local package containing the configuration and place it above accounts-base in the packages file.

It would be good to have to option to put the settings in settings.json somehow although I'm not sure how that would work with importing PEM files (e.g. the sslCA option).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions