UNPKG

@graphql-mesh/transport-neo4j

Version:
12 lines (11 loc) 372 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), }, trustedCertificates: [], }); }