From f15472eb496c5c2e5045645d513cb3585b7fcbdf Mon Sep 17 00:00:00 2001 From: Melih DARCAN <57872471+MelihDarcanxyz@users.noreply.github.com> Date: Thu, 3 Oct 2024 21:30:47 +0300 Subject: [PATCH] fix: env variables --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index b06ce1c..736ea76 100644 --- a/src/index.js +++ b/src/index.js @@ -556,8 +556,8 @@ const typeDefs = `#graphql `; const driver = neo4j.driver( - process.env.MY_NEO4J_URI, - neo4j.auth.basic(process.env.MY_NEO4J_USERNAME, process.env.MY_NEO4J_PASSWORD) + process.env.NEO4J_URI, + neo4j.auth.basic(process.env.NEO4J_USERNAME, process.env.MY_NEO4J_PASSWORD) ); const neoSchema = new Neo4jGraphQL({ typeDefs, driver }); @@ -567,7 +567,7 @@ const server = new ApolloServer({ }); const { url } = await startStandaloneServer(server, { - context: async ({ req }) => ({ req, sessionConfig: { database: process.env.MY_NEO4J_DATABASE_NAME }}), + context: async ({ req }) => ({ req, sessionConfig: { database: process.env.NEO4J_DATABASE_NAME }}), listen: { port: process.env.API_PORT }, });