Skip to content

Commit

Permalink
custom improvement
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
agungdwiprasetyo committed Sep 8, 2022
1 parent 6d71ad7 commit 7f18f91
Show file tree
Hide file tree
Showing 79 changed files with 2,571 additions and 415 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
CHANGELOG

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

[v1.0.0](https://github.com/graph-gophers/graphql-go/releases/tag/v1.0.0) Initial release
[v1.0.0](https://github.com/golangid/graphql-go/releases/tag/v1.0.0) Initial release
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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)
# 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)

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

Expand All @@ -21,7 +21,7 @@ safe for production use.

## Roadmap

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

## (Some) Documentation
Expand All @@ -36,8 +36,8 @@ import (
"log"
"net/http"

graphql "github.com/graph-gophers/graphql-go"
"github.com/graph-gophers/graphql-go/relay"
graphql "github.com/golangid/graphql-go"
"github.com/golangid/graphql-go/relay"
)

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

### Resolvers

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

import (
"github.com/graph-gophers/graphql-go"
"github.com/graph-gophers/graphql-go/example/starwars"
otelgraphql "github.com/graph-gophers/graphql-go/trace/otel"
"github.com/graph-gophers/graphql-go/trace/tracer"
"github.com/golangid/graphql-go"
"github.com/golangid/graphql-go/example/starwars"
otelgraphql "github.com/golangid/graphql-go/trace/otel"
"github.com/golangid/graphql-go/trace/tracer"
)
// ...
_, err := graphql.ParseSchema(starwars.Schema, nil, graphql.Tracer(otelgraphql.DefaultTracer()))
Expand All @@ -194,10 +194,10 @@ _, err = graphql.ParseSchema(starwars.Schema, nil, graphql.Tracer(&otelgraphql.T
package main

import (
"github.com/graph-gophers/graphql-go"
"github.com/graph-gophers/graphql-go/example/starwars"
"github.com/graph-gophers/graphql-go/trace/opentracing"
"github.com/graph-gophers/graphql-go/trace/tracer"
"github.com/golangid/graphql-go"
"github.com/golangid/graphql-go/example/starwars"
"github.com/golangid/graphql-go/trace/opentracing"
"github.com/golangid/graphql-go/trace/tracer"
)
// ...
_, err := graphql.ParseSchema(starwars.Schema, nil, graphql.Tracer(opentracing.Tracer{}))
Expand All @@ -215,5 +215,5 @@ type Tracer interface {
```


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

4 changes: 2 additions & 2 deletions example/apollo_federation/subgraph_one/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"net/http"

"github.com/graph-gophers/graphql-go"
"github.com/graph-gophers/graphql-go/relay"
"github.com/golangid/graphql-go"
"github.com/golangid/graphql-go/relay"
)

var schema = `
Expand Down
4 changes: 2 additions & 2 deletions example/apollo_federation/subgraph_two/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"net/http"

"github.com/graph-gophers/graphql-go"
"github.com/graph-gophers/graphql-go/relay"
"github.com/golangid/graphql-go"
"github.com/golangid/graphql-go/relay"
)

var schema = `
Expand Down
Loading

0 comments on commit 7f18f91

Please sign in to comment.