Documentation
    Preparing search index...

    Interface GetConnectionOptions

    interface GetConnectionOptions {
        type: "write" | "read";
        useMaster?: boolean;
    }
    Index
    type: "write" | "read"

    Set which replica to use. Available options are read and write

    useMaster?: boolean

    Force master or write replica to get connection from