diff --git a/app/env.example b/app/env.example index 84a6acf..e3fc345 100644 --- a/app/env.example +++ b/app/env.example @@ -1,6 +1,6 @@ GOOGLE_CLIENT_ID="" GOOGLE_CLIENT_SECRET="" GOOGLE_CALLBACK_URI="http://localhost:5173/login/google/callback" -MEMEGRAPH_URI="bolt://localhost:7687" +MEMGRAPH_URI="bolt://localhost:7687" MEMGRAPH_USER="memgraph" MEMGRAPH_PASSWORD="memgraph" \ No newline at end of file diff --git a/app/src/lib/server/db.ts b/app/src/lib/server/db.ts index 10ccce8..376f481 100644 --- a/app/src/lib/server/db.ts +++ b/app/src/lib/server/db.ts @@ -1,9 +1,9 @@ import memgraph from 'neo4j-driver'; import type { Driver } from 'neo4j-driver'; -import { MEMEGRAPH_URI, MEMGRAPH_USER, MEMGRAPH_PASSWORD } from '$env/static/private'; +import { MEMGRAPH_URI, MEMGRAPH_USER, MEMGRAPH_PASSWORD } from '$env/static/private'; -export const driverInstance: Driver = memgraph.driver( - MEMEGRAPH_URI || 'bolt://localhost:7687', +export const DB: Driver = memgraph.driver( + MEMGRAPH_URI || 'bolt://localhost:7687', memgraph.auth.basic( MEMGRAPH_USER || 'memgraph', MEMGRAPH_PASSWORD || 'memgraph'