Skip to content

Commit 70b2928

Browse files
committed
pr feedback
1 parent 49e23de commit 70b2928

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/blog/getting-started-with-spring-boot.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title = "Getting started with GraphQL Java and Spring Boot"
33
author = "Andreas Marek"
4-
tags = []
4+
tags = [spring, tutorial]
55
categories = []
66
date = 2019-01-23
77
toc = "true"
@@ -196,7 +196,7 @@ public class GraphQLProvider {
196196
{{< / highlight >}}
197197
<p/>
198198

199-
We use Guava `Resources` to read the file from our classpath, then create a `GraphQLSchema` and `GraphQL` instance. This `GraphQL` instance is exposed as a Spring Bean. The GraphQL Java Spring adapter will use that `GraphQL` instance to make our schema available via HTTP on the default url `/graphql`.
199+
We use Guava `Resources` to read the file from our classpath, then create a `GraphQLSchema` and `GraphQL` instance. This `GraphQL` instance is exposed as a Spring Bean via the `graphQL()` method annotated with `@Bean`. The GraphQL Java Spring adapter will use that `GraphQL` instance to make our schema available via HTTP on the default url `/graphql`.
200200

201201
What we still need to do is to implement the `buildSchema` method which creates the `GraphQLSchema` instance and wires in code to fetch data:
202202

@@ -248,7 +248,7 @@ public interface DataFetcher<T> {
248248
{{< / highlight >}}
249249
<p/>
250250

251-
Important: **Every** field from the schema has a `DataFetcher` associated with. If you don't specify any `DataFetcher` for a specific field, then the default `PropertyDataFetcher` is used.
251+
Important: **Every** field from the schema has a `DataFetcher` associated with. If you don't specify any `DataFetcher` for a specific field, then the default `PropertyDataFetcher` is used. We will discuss this later in more detail.
252252

253253
We are creating a new class `GraphQLDataFetchers` which contains a sample list of books and authors.
254254

0 commit comments

Comments
 (0)