Skip to content

Commit dcedd80

Browse files
committed
Start of 13.0 documentation
1 parent f89c0c3 commit dcedd80

22 files changed

+3709
-23
lines changed

config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ theme = "hugo-sustain"
55
pygmentsUseClasses=true
66

77
[params]
8-
latestReleases = ["v9.5", "v12.0"]
9-
latestDocs = "v12"
8+
latestReleases = ["v9.5", "v13.0"]
9+
latestDocs = "v13"
1010

1111
## Main Menu
1212
[[menu.main]]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: "Documentation"
3-
date: 2018-09-09T18:19:33+06:00
3+
date: 2019-06-12T18:19:33+06:00
4+
aliases: [/documentation/latest/]
45
---
56
graphql-java documentation

content/documentation/master/schema.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -274,27 +274,7 @@ Example:
274274

275275
{{< / highlight >}}
276276

277-
To make a programmatically-generated schema executable, you can just instantiate a `GraphQLSchema` object directly, and pass in your root `Query` (and `Mutation`) `GraphQLObjectType` objects, as shown in the example below:
278277

279-
{{< highlight java "linenos=table" >}}
280-
281-
282-
GraphQLObjectType queryType = newObject()
283-
.name("QueryType")
284-
.field(newFieldDefinition()
285-
.name("hello")
286-
.type(GraphQLString)
287-
.dataFetcher(new StaticDataFetcher("world!"))
288-
.build();
289-
290-
GraphQLSchema schema = GraphQLSchema.newSchema()
291-
.query(queryType)
292-
.build();
293-
294-
// Make the schema executable
295-
GraphQL executor = GraphQL.newGraphQL(graphQLSchema).build();
296-
ExecutionResult executionResult = executor.execute("{hello}");
297-
{{< / highlight >}}
298278

299279
## Types
300280

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "Documentation"
3+
date: 2019-06-12T18:19:33+06:00
4+
aliases: [/documentation/latest/]
5+
---
6+
graphql-java documentation

0 commit comments

Comments
 (0)