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: lessons/day_04/java/README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
# [A walk in GraphQL](../../../README.md)
2
2
3
-
## Day 2 exercise - Java
3
+
## Day 4 exercise - Java
4
4
5
-
Read the instructions on the [Day 2 exercise](../day_02.md#exercise) definition
5
+
Read the instructions on the [Day 4 exercise](../day_04.md#exercise) definition
6
+
7
+
HINT: Mutation objects are root GraphQL objects. They don’t have any associated "data" class. In such cases, the "resolver" class should be an annotated Spring controller.
6
8
7
9
### Requirements
8
10
9
-
Java 1.8 is required. Please look at [here](../../../setup/java.md#requirements) if you do not have it installed on your local environment.
11
+
Java 17 is required. Please look at [here](../../../setup/java.md#requirements) if you do not have it installed on your local environment.
Copy file name to clipboardExpand all lines: lessons/day_06/java/README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,19 @@
1
1
# [A walk in GraphQL](../../../README.md)
2
2
3
-
## Day 2 exercise - Java
3
+
## Day 6 exercise - Java
4
4
5
-
Read the instructions on the [Day 2 exercise](../day_02.md#exercise) definition
5
+
Read the instructions on the [Day 6 exercise](../day_06.md#exercise) definition
6
+
7
+
8
+
HINTS:
9
+
10
+
* You can split up your schema into more than one file to keep it organized.
11
+
* The GraphQL Tools library works by processing GraphQL Schema files to build the correct structure and then wires special beans to this structure.
12
+
* The Spring Boot GraphQL starter automatically finds these schema files, we just need to save these files with the extension `.graphqls` on the classpath (ex: inside `src/main/resources/graphql`).
6
13
7
14
### Requirements
8
15
9
-
Java 1.8 is required. Please look at [here](../../../setup/java.md#requirements) if you do not have it installed on your local environment.
16
+
Java 17 is required. Please look at [here](../../../setup/java.md#requirements) if you do not have it installed on your local environment.
* Spring for GraphQL registers a DataFetcherExceptionHandler that provides default handling and enables the DataFetcherExceptionResolver contract.
17
+
18
+
TODO Correct the patchs descriptions
19
+
* Apply the following "hint" git patch to get an example of defending and informative error handling strategies: ".../a-walk-in-graphql/lessons/day_07/java/src/main/resources/Java_day_07_Error_Handling.patch".
20
+
* From command line: git apply src/main/resources/Java_day_07_Error_Handling.patch
21
+
* From IntelliJ IDEA:
22
+
* Open the "VCS" menu > "Apply Patch.."
23
+
* Select the ".../a-walk-in-graphql/lessons/day_07/java/src/main/resources/Java_day_07_Error_Handling.patch" file patch > OK
0 commit comments