Skip to content

Commit 7f18f91

Browse files
custom improvement
- add directive implementation - match Int input args type with int and int64 - move trace field so can capture recover if panic - [tracer] add tag response data - subscription: add panic handling - panic handling: add extension - subscription: check all fields until find method - exec subscription field: add todo - subscription: method resolver not only in root - separate query, mutation, subscription resolver
1 parent 6d71ad7 commit 7f18f91

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2571
-415
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
CHANGELOG
22

3-
[v1.1.0](https://github.com/graph-gophers/graphql-go/releases/tag/v1.1.0) Release v1.1.0
3+
[v1.1.0](https://github.com/golangid/graphql-go/releases/tag/v1.1.0) Release v1.1.0
44
* [FEATURE] Add types package #437
55
* [FEATURE] Expose `packer.Unmarshaler` as `decode.Unmarshaler` to the public #450
66
* [FEATURE] Add location fields to type definitions #454
77
* [FEATURE] `errors.Errorf` preserves original error similar to `fmt.Errorf` #456
88
* [BUGFIX] Fix duplicated __typename in response (fixes #369) #443
99

10-
[v1.0.0](https://github.com/graph-gophers/graphql-go/releases/tag/v1.0.0) Initial release
10+
[v1.0.0](https://github.com/golangid/graphql-go/releases/tag/v1.0.0) Initial release

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# graphql-go [![Sourcegraph](https://sourcegraph.com/github.com/graph-gophers/graphql-go/-/badge.svg)](https://sourcegraph.com/github.com/graph-gophers/graphql-go?badge) [![Build Status](https://graph-gophers.semaphoreci.com/badges/graphql-go/branches/master.svg?style=shields)](https://graph-gophers.semaphoreci.com/projects/graphql-go) [![GoDoc](https://godoc.org/github.com/graph-gophers/graphql-go?status.svg)](https://godoc.org/github.com/graph-gophers/graphql-go)
1+
# graphql-go [![Sourcegraph](https://sourcegraph.com/github.com/golangid/graphql-go/-/badge.svg)](https://sourcegraph.com/github.com/golangid/graphql-go?badge) [![Build Status](https://graph-gophers.semaphoreci.com/badges/graphql-go/branches/master.svg?style=shields)](https://graph-gophers.semaphoreci.com/projects/graphql-go) [![GoDoc](https://godoc.org/github.com/golangid/graphql-go?status.svg)](https://godoc.org/github.com/golangid/graphql-go)
22

33
<p align="center"><img src="docs/img/logo.png" width="300"></p>
44

@@ -21,7 +21,7 @@ safe for production use.
2121

2222
## Roadmap
2323

24-
We're trying out the GitHub Project feature to manage `graphql-go`'s [development roadmap](https://github.com/graph-gophers/graphql-go/projects/1).
24+
We're trying out the GitHub Project feature to manage `graphql-go`'s [development roadmap](https://github.com/golangid/graphql-go/projects/1).
2525
Feedback is welcome and appreciated.
2626

2727
## (Some) Documentation
@@ -36,8 +36,8 @@ import (
3636
"log"
3737
"net/http"
3838

39-
graphql "github.com/graph-gophers/graphql-go"
40-
"github.com/graph-gophers/graphql-go/relay"
39+
graphql "github.com/golangid/graphql-go"
40+
"github.com/golangid/graphql-go/relay"
4141
)
4242

4343
type query struct{}
@@ -60,7 +60,7 @@ Then run the file with `go run main.go`. To test:
6060
```sh
6161
curl -XPOST -d '{"query": "{ hello }"}' localhost:8080/query
6262
```
63-
For more realistic usecases check our [examples section](https://github.com/graph-gophers/graphql-go/wiki/Examples).
63+
For more realistic usecases check our [examples section](https://github.com/golangid/graphql-go/wiki/Examples).
6464

6565
### Resolvers
6666

@@ -173,10 +173,10 @@ By default the library uses `noop.Tracer`. If you want to change that you can us
173173
package main
174174

175175
import (
176-
"github.com/graph-gophers/graphql-go"
177-
"github.com/graph-gophers/graphql-go/example/starwars"
178-
otelgraphql "github.com/graph-gophers/graphql-go/trace/otel"
179-
"github.com/graph-gophers/graphql-go/trace/tracer"
176+
"github.com/golangid/graphql-go"
177+
"github.com/golangid/graphql-go/example/starwars"
178+
otelgraphql "github.com/golangid/graphql-go/trace/otel"
179+
"github.com/golangid/graphql-go/trace/tracer"
180180
)
181181
// ...
182182
_, err := graphql.ParseSchema(starwars.Schema, nil, graphql.Tracer(otelgraphql.DefaultTracer()))
@@ -194,10 +194,10 @@ _, err = graphql.ParseSchema(starwars.Schema, nil, graphql.Tracer(&otelgraphql.T
194194
package main
195195

196196
import (
197-
"github.com/graph-gophers/graphql-go"
198-
"github.com/graph-gophers/graphql-go/example/starwars"
199-
"github.com/graph-gophers/graphql-go/trace/opentracing"
200-
"github.com/graph-gophers/graphql-go/trace/tracer"
197+
"github.com/golangid/graphql-go"
198+
"github.com/golangid/graphql-go/example/starwars"
199+
"github.com/golangid/graphql-go/trace/opentracing"
200+
"github.com/golangid/graphql-go/trace/tracer"
201201
)
202202
// ...
203203
_, err := graphql.ParseSchema(starwars.Schema, nil, graphql.Tracer(opentracing.Tracer{}))
@@ -215,5 +215,5 @@ type Tracer interface {
215215
```
216216

217217

218-
### [Examples](https://github.com/graph-gophers/graphql-go/wiki/Examples)
218+
### [Examples](https://github.com/golangid/graphql-go/wiki/Examples)
219219

example/apollo_federation/subgraph_one/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"log"
55
"net/http"
66

7-
"github.com/graph-gophers/graphql-go"
8-
"github.com/graph-gophers/graphql-go/relay"
7+
"github.com/golangid/graphql-go"
8+
"github.com/golangid/graphql-go/relay"
99
)
1010

1111
var schema = `

example/apollo_federation/subgraph_two/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"log"
55
"net/http"
66

7-
"github.com/graph-gophers/graphql-go"
8-
"github.com/graph-gophers/graphql-go/relay"
7+
"github.com/golangid/graphql-go"
8+
"github.com/golangid/graphql-go/relay"
99
)
1010

1111
var schema = `

0 commit comments

Comments
 (0)