Skip to content

Commit 5f93298

Browse files
committed
PR feedback
1 parent de8910d commit 5f93298

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ date = 2019-01-23
77
toc = "true"
88
+++
99

10-
This is a tutorial for people who never development a GraphQL server with Java. Some Spring Boot and Java knowledge is required. While we give a brief introduction into GraphQL, the focus of this tutorial is on developing a GraphQL server in Java.
10+
This is a tutorial for people who have never development a GraphQL server with Java. Some Spring Boot and Java knowledge is required. While we give a brief introduction into GraphQL, the focus of this tutorial is on developing a GraphQL server in Java.
1111

1212

1313
# GraphQL in 3 minutes
1414

1515
GraphQL is a query language to retrieve data from a server. It is an alternative to REST, SOAP or gRPC in some way.
1616

17-
For example, we wanna query the details for specific book from a online store backend.
17+
Let's suppose we want to query the details for a specific book from a online store backend.
1818

1919
With GraphQL you send the following query to server to get the details for the book with the id "123":
2020

@@ -80,7 +80,7 @@ type Author {
8080

8181
This tutorial will focus on how to implement a GraphQL server with exactly this schema in Java.
8282

83-
We barely touched GraphQL. Further information can be found on the official page: https://graphql.github.io/learn/
83+
We've barely scratched the surface of what's possible with GraphQL. Further information can be found on the official page: https://graphql.github.io/learn/
8484

8585
# GraphQL Java Overview
8686

@@ -166,7 +166,7 @@ It also defines the type `Book` which has the fields: `id`, `name`, `pageCount`
166166

167167
> The Domain Specific Language shown above which is used to describe a schema is called Schema Definition Language or SDL. More details about it can be found [here](https://graphql.org/learn/schema/).
168168
169-
But so far it is just a normal text. We need to "bring it to live" by reading the file and parsing it.
169+
But so far this is just normal text. We need to "bring it to live" by reading the file and parsing it.
170170

171171
We create a new `GraphQLProvider` class in the package `com.graphqljava.tutorial.bookdetails` with an `init` method which will create a `GraphQL` instance:
172172

@@ -197,7 +197,7 @@ public class GraphQLProvider {
197197
{{< / highlight >}}
198198
<p/>
199199

200-
We use Guava to read the file at runtime from our classpath, then create a `GraphQLSchema` and `GraphQL` instance. This `GraphQL` instance is exposed as Spring Bean. The GraphQL Java Spring adapter will use that `GraphQL` instance to make our schema available via HTTP on the default url `/graphql`.
200+
We use Guava to read the file at runtime 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`.
201201

202202
What we still need to do is to implement the `buildSchema` method which creates the `GraphQLSchema` instance:
203203

@@ -338,7 +338,7 @@ This is an important concept to understand: the `DataFetcher` for each field in
338338
We then use the previously fetched book to get the `authorId` and look for that specific author in the same way we look for a specific book.
339339

340340
# Try out the API
341-
This is all that is needed to actually build a working GraphQL API. After the starting the Spring Boot application the API is available on `http://localhost:8080/graphql`.
341+
This is all you actually need to build a working GraphQL API. After the starting the Spring Boot application the API is available on `http://localhost:8080/graphql`.
342342

343343
The easiest way to try out and explore a GraphQL API is to use a tool like [GraphQL Playground](https://github.com/prisma/graphql-playground). Download it and run it.
344344

0 commit comments

Comments
 (0)