Skip to content

Commit dc1a495

Browse files
authored
Instructions to connect to AuraDB (#15)
* Instructions to connect to AuraDB * adding info about port config
1 parent 6ba4087 commit dc1a495

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed
73.8 KB
Loading

modules/ROOT/pages/getting-started/index.adoc

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,30 @@ When the schema is generated, you can then execute queries for `actors` and `mov
9595

9696
== Create an instance of `Neo4jGraphQL`
9797

98-
To create an instance of the Neo4j GraphQL Library, you need a Neo4j driver to connect to your database.
98+
To create an instance of the Neo4j GraphQL Library, you need a Neo4j driver to connect to your database.
9999

100-
. For a database located at "bolt://localhost:7687", with the username "neo4j" and the password "password", add the following to the bottom of your `index.js` file:
100+
=== Using AuraDB
101+
102+
. For an AuraDB database, https://neo4j.com/cloud/platform/aura-graph-database/?ref=docs-graphql[create an instance].
103+
104+
. Make sure to save the generated password and the connection URI provided after the instance is ready and looking similar to this:
101105
+
106+
image::neo4j-aura-dashboard.png[width=500]
107+
108+
. Create a new file `.env` with the credentials described in the previous step.
109+
It should look like this:
110+
+
111+
[source, config]
112+
----
113+
NEO4J_USER=neo4j
114+
NEO4J_PASSWORD=password
115+
NEO4J_URI=neo4j+s://0083654f.databases.neo4j.io
116+
----
117+
118+
=== Using a Neo4j database
119+
120+
For a database located at the default "bolt://localhost:7687" (see more about https://neo4j.com/docs/operations-manual/current/configuration/ports[port configuration]), with the username "neo4j" and the password "password", add the following to the bottom of your `index.js` file:
121+
102122
[source, javascript, indent=0]
103123
----
104124
const driver = neo4j.driver(

0 commit comments

Comments
 (0)