Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion modules/ROOT/pages/getting-started/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,25 @@ const server = new ApolloServer({
schema: await neoSchema.getSchema(),
});


const { url } = await startStandaloneServer(server, {
context: async ({ req }) => ({
req,
cypherQueryOptions: {
addVersionPrefix: true,
},
}),
listen: { port: 4000 },
});

console.log(`🚀 Server ready at ${url}`);
----

[NOTE]
====
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.
====

== Start the server


Expand Down Expand Up @@ -171,7 +183,12 @@ const server = new ApolloServer({
});

const { url } = await startStandaloneServer(server, {
context: async ({ req }) => ({ req }),
context: async ({ req }) => ({
req,
cypherQueryOptions: {
addVersionPrefix: true,
},
}),
listen: { port: 4000 },
});

Expand Down