Skip to content

Commit

Permalink
Updated to use graphql-go-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
sogko committed Oct 3, 2015
1 parent d02770f commit d77e62e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Port of the [React/Relay TodoMVC app](https://github.com/facebook/relay/tree/mas
## Parts and pieces
- [golang-relay-starter-kit](https://github.com/sogko/golang-relay-starter-kit)
- [graphql-go](https://github.com/chris-ramon/graphql-go)
- [graphql-go-handler](https://github.com/sogko/graphql-go-handler)
- [graphql-relay-go](https://github.com/sogko/graphql-relay-go)

### Notes:
Expand Down
4 changes: 2 additions & 2 deletions graphql.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/sogko/graphql-relay-go"
"github.com/sogko/graphql-go-handler"
"github.com/sogko/todomvc-relay-go/data"
"log"
"net/http"
Expand All @@ -10,7 +10,7 @@ import (
func main() {

// simplest relay-compliant graphql server HTTP handler
h := gqlrelay.NewHandler(&gqlrelay.HandlerConfig{
h := gqlhandler.New(&gqlhandler.Config{
Schema: &data.Schema,
Pretty: true,
})
Expand Down
3 changes: 3 additions & 0 deletions public/learn.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"links": [{
"name": "graphql-go",
"url": "https://github.com/chris-ramon/graphql-go"
}, {
"name": "graphql-go-handler",
"url": "https://github.com/sogko/graphql-go-handler"
}, {
"name": "graphql-relay-go",
"url": "https://github.com/sogko/graphql-relay-go"
Expand Down

0 comments on commit d77e62e

Please sign in to comment.