Skip to content

Commit 46a427a

Browse files
author
etienne-sf
committed
Ready for release 2.4
1 parent 2584c4c commit 46a427a

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Let's first have a look at the Maven **pom.xml** file:
5050
```XML
5151

5252
<properties>
53-
<graphql-maven-plugin.version>1.18.6graphql-maven-plugin.version>
53+
<graphql-maven-plugin.version>2.4graphql-maven-plugin.version>
5454
properties>
5555

5656
<build>
@@ -128,7 +128,7 @@ Let's first have a look at the Maven **pom.xml** file:
128128
Define once the plugin version in the **build.properties** file:
129129

130130
```Groovy
131-
graphQLPluginVersion = 1.18.6
131+
graphQLPluginVersion = 2.4
132132
```
133133
Then the Gradle **build.gradle** file:
134134

@@ -227,14 +227,12 @@ Let's take a look at the generated code:
227227
* The classes starting by '__' (two underscores) are the GraphQL introspection classes. These are standard GraphQL types.
228228
* All other classes are directly the items defined in the forum GraphQL schema, with their fields, getter and setter. All fields are annotated with the GraphQL information necessary on runtime, and the JSON annotations to allow the deserialization of the server response.
229229
* The __org.forum.server.graphql.util__ package contains:
230-
* _BatchLoaderDelegateXxxxImpl_ classes are utility classes that manages the data loader for you.
231-
* _DataFetchersDelegateXxx_ interfaces: these interfaces contain all method that indicates to the server how to retrieve the data. You'll have to implement these interfaces
232-
* _GraphQLDataFetchers_ is a technical class that declares every Data Fetcher to the graphql-java framework
233-
* _GraphQLProvider_ declares all GraphQL components to the graphql-java framework
230+
* _XxxController_ classes are the spring controllers that is called by spring-graphql to fetch data. These controllers call the relevant Data Fetcher Delegates that you'll implement.
231+
* _DataFetchersDelegateXxx_ interfaces: these interfaces contain all method that indicates to the server how to retrieve the data. You'll have to implement these interfaces (see below)
234232
* _GraphQLServerMain_ is the main entry point of the server. The application is a regular Spring Boot application or war, and you'll find lots of information on the net on how to configure such an app (and see below)
235233
* If the packaging is _jar_ (like in this tutorial), it contains the _main_ method that allow the produced jar to start as a java application
236234
* If the packaging is _war_, it inherits from _SpringBootServletInitializer_, allowing the module to be loaded as war webapp.
237-
* _WebSocketXxx_ are utility classes to manage Web Sockets. Web Sockets are the way to receive the notification back from a subscription.
235+
* _GraphQLWiring_ is the technical class that maps the custom scalars to their java implementation, as specified in your pom.xml or gradle.build file
238236

239237

240238
To sum up, you'll use:

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// BuildSrc versions
2-
graphQLPluginVersion = 2.3.2
2+
graphQLPluginVersion = 2.4
33

44
// Project dependencies versions
5-
springBootVersion = 3.1.0
5+
springBootVersion = 3.2.1
66
dependencyManagementPluginVersion = 1.1.0

0 commit comments

Comments
 (0)