Skip to content

Commit 22dfe79

Browse files
committed
added a note about hardcoded credentials, added a prereq section for graphql-aura
1 parent 29b26eb commit 22dfe79

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

modules/ROOT/pages/getting-started/graphql-aura.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
This tutorial shows you how to create and use a GraphQL Data API in Aura Console.
44

5+
== Prerequisites
6+
7+
Set up an AuraDB instance.
8+
Refer to link:https://neo4j.com/docs/aura/getting-started/create-instance/[Creating a Neo4j Aura instance].
9+
510

611
== Create a GraphQL Data API
712

modules/ROOT/pages/getting-started/graphql-self-hosted.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ const driver = neo4j.driver(
105105
const neoSchema = new Neo4jGraphQL({ typeDefs, driver });
106106
----
107107

108+
[NOTE]
109+
====
110+
Hardcoding your credentials like this is not advisable because it exposes them to anyone who can access your source code.
111+
In a real application, protect your credentials.
112+
====
113+
108114

109115
== Create an instance of `ApolloServer`
110116

0 commit comments

Comments
 (0)