Skip to content

Commit

Permalink
fix: env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
MelihDarcanxyz committed Oct 3, 2024
1 parent 5cb95ce commit f15472e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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 },
});

Expand Down

0 comments on commit f15472e

Please sign in to comment.