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

Properties

Properties

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