File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
modules/ROOT/pages/getting-started Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -128,13 +128,25 @@ const server = new ApolloServer({
128128 schema: await neoSchema.getSchema(),
129129});
130130
131+
131132const { url } = await startStandaloneServer(server, {
133+ context: async ({ req }) => ({
134+ req,
135+ cypherQueryOptions: {
136+ addVersionPrefix: true,
137+ },
138+ }),
132139 listen: { port: 4000 },
133140});
134141
135142console.log(`🚀 Server ready at ${url}`);
136143----
137144
145+ [NOTE]
146+ ====
147+ If you are using Neo4j 4.x, set the value of `addVersionPrefix` to false. Note that this may cause issues with AuraDB or Neo4j 2025 instances.
148+ ====
149+
138150== Start the server
139151
140152
@@ -171,7 +183,12 @@ const server = new ApolloServer({
171183});
172184
173185const { url } = await startStandaloneServer(server, {
174- context: async ({ req }) => ({ req }),
186+ context: async ({ req }) => ({
187+ req,
188+ cypherQueryOptions: {
189+ addVersionPrefix: true,
190+ },
191+ }),
175192 listen: { port: 4000 },
176193});
177194
You can’t perform that action at this time.
0 commit comments