Skip to content

Support srv uri host names #127

Open
@charlielittle

Description

@charlielittle

Allow the URI of the form mongodb+srv://, which is needed for Atlas connections.
Attaching fixed mongodb-schema file which loosens the assumption on the URI parameter
if (!uri.startsWith('mongodb://') && !uri.startsWith("mongodb+srv://") ) { uri = 'mongodb://' + uri; } console.log(URI: ${uri})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @charlielittle

        Issue actions

          Support srv uri host names · Issue #127 · mongodb-js/mongodb-schema