Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ramon committed Nov 3, 2015
1 parent 37ab6ee commit ec3367a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@ Installation
go get github.com/chris-ramon/graphql
```

Example
A simple example that defines a schema with `hello` field, it’s resolve function
returns a string `world` then a graphql query is perform against that schema
the result is printed as JSON.

For more complex examples see [examples](https://github.com/chris-ramon/graphql/tree/master/examples/) directory and [graphql_test.go](https://github.com/chris-ramon/graphql/blob/master/graphql_test.go).
A simple example that defines a schema with a `hello` string field
it’s resolve function returns a string `world` then a graphql query
is perform against that schema the result is printed as JSON:

```go
package main
Expand Down Expand Up @@ -62,6 +59,8 @@ func main() {
}
```

For more complex examples see [examples](https://github.com/chris-ramon/graphql/tree/master/examples/) directory and [graphql tests](https://github.com/chris-ramon/graphql/blob/master/graphql_test.go).

### Origin and Current Direction

This project was originally a port of [v0.4.3](https://github.com/graphql/graphql-js/releases/tag/v0.4.3) of [graphql-js](https://github.com/graphql/graphql-js) (excluding the Validator), which was based on the July 2015 GraphQL specification. `graphql` is currently several versions behind `graphql-js`, however future efforts will be guided directly by the [latest formal GraphQL specification](https://github.com/facebook/graphql/releases) (currently: [October 2015](https://github.com/facebook/graphql/releases/tag/October2015)).
Expand Down

0 comments on commit ec3367a

Please sign in to comment.