@omnigraph/neo4j
Version:
16 lines (15 loc) • 592 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDriverFromOpts = void 0;
const tslib_1 = require("tslib");
const neo4j_driver_1 = tslib_1.__importDefault(require("neo4j-driver"));
const auth_js_1 = require("./auth.js");
function getDriverFromOpts(opts) {
return neo4j_driver_1.default.driver(opts.endpoint, (0, auth_js_1.getAuthFromOpts)(opts.auth), {
useBigInt: true,
logging: opts.logger && {
logger: (level, message) => opts.logger[level](message),
},
});
}
exports.getDriverFromOpts = getDriverFromOpts;
;