Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: update docs #41

Merged
merged 1 commit into from
Jul 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

Golang HTTP.Handler for [graphl-go](https://github.com/graphql-go/graphql)

### Notes:
This is based on alpha version of `graphql-go` and `graphql-relay-go`.
Be sure to watch both repositories for latest changes.

### Usage

```go
Expand All @@ -17,8 +13,6 @@ import (
)

func main() {

// define GraphQL schema using relay library helpers
schema, _ := graphql.NewSchema(...)

h := handler.New(&handler.Config{
Expand All @@ -27,7 +21,6 @@ func main() {
GraphiQL: true,
})

// serve HTTP
http.Handle("/graphql", h)
http.ListenAndServe(":8080", nil)
}
Expand Down