Skip to content

Commit

Permalink
Merge pull request graphql-java#246 from AntwaneB/master
Browse files Browse the repository at this point in the history
Fixed DataFetcher example and typo in the readme
  • Loading branch information
andimarek authored Nov 23, 2016
2 parents 4f9a66d + 5427de5 commit b2d6e04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ GraphQLInputObjectType inputObjectType = newInputObject()

`GraphQLList` and `GraphQLNonNull` wrap another type to declare a list or to forbid null values.

There are no builders to create now objects. Just normal constructors, because they are so simple.
There are no builders to create new objects. Just normal constructors, because they are so simple.

Example:

Expand Down Expand Up @@ -313,6 +313,7 @@ DataFetcher calculateComplicatedValue = new DataFetcher() {
Object value = ... // Perhaps getting from a DB or whatever
return value;
}
};

GraphQLObjectType objectType = newObject()
.name("ObjectType")
Expand All @@ -332,7 +333,7 @@ The result of a Query is a `ExecutionResult` Object with the result and/or a lis

Example: [GraphQL Test](src/test/groovy/graphql/GraphQLTest.groovy)

Complexer examples: [StarWars query tests](src/test/groovy/graphql/StarWarsQueryTest.groovy)
More complex examples: [StarWars query tests](src/test/groovy/graphql/StarWarsQueryTest.groovy)


#### Execution strategies
Expand Down

0 comments on commit b2d6e04

Please sign in to comment.