UNPKG

@omnigraph/neo4j

Version:

11 lines (10 loc) 339 B
import neo4j from 'neo4j-driver'; import { getAuthFromOpts } from './auth.js'; export function getDriverFromOpts(opts) { return neo4j.driver(opts.endpoint, getAuthFromOpts(opts.auth), { useBigInt: true, logging: opts.logger && { logger: (level, message) => opts.logger[level](message), }, }); }