Skip to content

Commit 799bc09

Browse files
Fix java READMES JDK
1 parent 82628cd commit 799bc09

File tree

6 files changed

+52
-16
lines changed

6 files changed

+52
-16
lines changed

lessons/day_02/java/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Read the instructions on the [Day 2 exercise](../day_02.md#exercise) definition
66

77
### Requirements
88

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.
9+
Java 17 is required. Please look at [here](../../../setup/java.md#requirements) if you do not have it installed on your local environment.
1010

1111
### Keep in mind
1212

lessons/day_03/java/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# [A walk in GraphQL](../../../README.md)
22

3-
## Day 2 exercise - Java
3+
## Day 3 exercise - Java
44

5-
Read the instructions on the [Day 2 exercise](../day_02.md#exercise) definition
5+
Read the instructions on the [Day 3 exercise](../day_03.md#exercise) definition
6+
7+
HINT: Take a look at the commented out PersonService and SkillService methods!!
68

79
### Requirements
810

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.
1012

1113
### Keep in mind
1214

@@ -28,3 +30,5 @@ See [Testing GraphQL queries](../../../setup/java.md#testing-graphql-queries)
2830
### Database
2931

3032
See [Inspect the Database](../../../setup/java.md#inspect-the-database)
33+
34+

lessons/day_04/java/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# [A walk in GraphQL](../../../README.md)
22

3-
## Day 2 exercise - Java
3+
## Day 4 exercise - Java
44

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.
68

79
### Requirements
810

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.
1012

1113
### Keep in mind
1214

lessons/day_05/java/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
# [A walk in GraphQL](../../../README.md)
22

3-
## Day 2 exercise - Java
3+
## Day 5 exercise - Java
44

5-
Read the instructions on the [Day 2 exercise](../day_02.md#exercise) definition
5+
Read the instructions on the [Day 5 exercise](../day_05.md#exercise) definition
6+
7+
HINT:
8+
* Apply the following "hint" git patch: ".../a-walk-in-graphql/lessons/day_05/java/src/main/resources/Java_day_05_Interfaces_and_Unions_hint.patch".
9+
* From command line: `git apply src/main/resources/Java_day_05_Interfaces_and_Unions_hint.patch`
10+
* From IntelliJ IDEA:
11+
* Open the "VCS" menu > "Apply Patch.."
12+
* Select the ".../a-walk-in-graphql/lessons/day_05/java/src/main/resources/Java_day_05_Interfaces_and_Unions_hint.patch" file patch > OK
13+
14+
Now you need to complete the Mutation and Query resolvers with the required missing methods.
615

716
### Requirements
817

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.
18+
Java 17 is required. Please look at [here](../../../setup/java.md#requirements) if you do not have it installed on your local environment.
1019

1120
### Keep in mind
1221

lessons/day_06/java/README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
# [A walk in GraphQL](../../../README.md)
22

3-
## Day 2 exercise - Java
3+
## Day 6 exercise - Java
44

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`).
613

714
### Requirements
815

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.
1017

1118
### Keep in mind
1219

lessons/day_07/java/README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
11
# [A walk in GraphQL](../../../README.md)
22

3-
## Day 2 exercise - Java
3+
## Day 7 exercise - Java
44

5-
Read the instructions on the [Day 2 exercise](../day_02.md#exercise) definition
5+
Read the instructions on the [Day 7 exercise](../day_07.md#exercise) definition
66

77
### Requirements
88

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.
9+
Java 17 is required. Please look at [here](../../../setup/java.md#requirements) if you do not have it installed on your local environment.
10+
11+
12+
13+
HINTS:
14+
15+
* Exceptions (https://docs.spring.io/spring-graphql/docs/current/reference/html/#execution.exceptions)
16+
* 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
1024

1125
### Keep in mind
1226

0 commit comments

Comments
 (0)