You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/getting-started/graphql-aura.adoc
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,7 @@ This tutorial shows you how to create and use a GraphQL Data API in Aura Console
5
5
6
6
== Create a GraphQL Data API
7
7
8
-
In the Aura Console, select **Data services** > **Data APIs** from the left side navigation.
9
-
Use **Create API**.
8
+
In the Aura Console, select **Data services** > **Data APIs** from the left side navigation and then **Create API**.
10
9
11
10
12
11
=== Details
@@ -43,11 +42,10 @@ type Category @node {
43
42
44
43
The type definitions describe what parts of the graph database in the AuraDB are accessible by requests made via the GraphQL API.
45
44
46
-
If you already have data in the AuraDB, you can obtain your type definitions via the https://graphql-toolbox.neo4j.io[Neo4j GraphQL Toolbox].
45
+
Alternatively, if you already have data in the AuraDB, you can obtain your type definitions via the https://graphql-toolbox.neo4j.io[Neo4j GraphQL Toolbox].
47
46
The toolbox can connect to the AuraDB and automatically create type definitions and allow GraphQL operations.
48
47
49
-
//link
50
-
If you are using GraphQL Federation then make sure to select **Enable GraphQL subgraph**.
48
+
If you are using link:https://graphql.org/learn/federation/[GraphQL Federation] then make sure to select **Enable GraphQL subgraph**.
51
49
52
50
53
51
=== Cross-Origin Resource Sharing (CORS) policy
@@ -71,10 +69,8 @@ All requests to the GraphQL API are authenticated and there are two options for
71
69
It is possible to use these in combination and have multiples of each.
72
70
73
71
Select **API Key** from the dropdown list and enter a name.
74
-
75
72
The API key will be shown after the GraphQL API key has been created.
76
73
77
-
78
74
[CAUTION]
79
75
====
80
76
It is not recommended to use API keys with user-facing applications that are using the GraphQL API.
@@ -105,8 +101,7 @@ You can see the status via **Data APIs** from the left side navigation.
105
101
106
102
== Create nodes in the database
107
103
108
-
When the status for the GraphQL API is "Ready" you can send GraphQL requests to it.
109
-
As all requests are subject to authentication, you must include the API key.
104
+
When the status for the GraphQL API is **Ready** you can send GraphQL requests to it.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/getting-started/toolbox.adoc
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,13 @@ With it, you can:
18
18
Before you start using the Toolbox, make sure you have followed all xref:index.adoc#_requirements[requirements] to run a Neo4j database.
19
19
You can use https://neo4j.com/docs/desktop-manual/current/[Neo4j Desktop] or https://neo4j.com/docs/aura/auradb/[Neo4j AuraDB] for that.
20
20
21
+
21
22
== Set the type definitions
22
23
23
-
. Set your type definitions directly in the Toolbox editor or introspect the Neo4j database you connected to.
24
-
+
25
-
If you followed the xref:getting-started/graphql-self-hosted.adoc[self-hosted GraphQL tutorial], you should see these type definitions in the GraphQL Toolbox:
26
-
+
24
+
Set your type definitions directly in the Toolbox editor or introspect the Neo4j database you connected to.
25
+
26
+
If you followed the xref:getting-started/graphql-self-hosted.adoc[self-hosted GraphQL tutorial], use **Introspect** to see these type definitions in the GraphQL Toolbox:
. Click the button "Build schema" and then go to the Query editor tab.
44
43
45
-
. Query the Neo4j database using the autogenerated GraphQL queries and mutations from the `@neo4j/graphql` library:
44
+
== Build the schema and query the database
45
+
46
+
**Build schema** which takes you to **Query editor** tab.
47
+
48
+
Query the Neo4j database. Paste the following or interact with the autogenerated GraphQL queries and mutations from the `@neo4j/graphql` library from the **Explorer**:
0 commit comments