Skip to content

Commit 9fe3016

Browse files
authored
migrate to new repository (wundergraph#371)
1 parent 15ac580 commit 9fe3016

File tree

331 files changed

+992
-1201
lines changed

Some content is hidden

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

331 files changed

+992
-1201
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Jens Neuse
3+
Copyright (c) 2022 WunderGraph UG (haftungsbeschränkt)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,7 @@
1-
[![GoDoc](https://godoc.org/github.com/jensneuse/graphql-go-tools?status.svg)](https://godoc.org/github.com/jensneuse/graphql-go-tools)
2-
[![CI](https://github.com/jensneuse/graphql-go-tools/workflows/ci/badge.svg)](https://github.com/jensneuse/graphql-go-tools/workflows/ci/badge.svg)
1+
[![GoDoc](https://godoc.org/github.com/wundergraph/graphql-go-tools?status.svg)](https://godoc.org/github.com/wundergraph/graphql-go-tools)
2+
[![CI](https://github.com/wundergraph/graphql-go-tools/workflows/ci/badge.svg)](https://github.com/wundergraph/graphql-go-tools/workflows/ci/badge.svg)
33
# graphql-go-tools
44

5-
## Sponsors
6-
7-
### WunderGraph
8-
9-
Are you looking for a GraphQL e2e data fetching solution?
10-
Supports frameworks like NextJS,
11-
type safety with generated clients (e.g. TypeScript),
12-
authentication,
13-
edge caching,
14-
realtime streaming support,
15-
federation, schema stitching, etc...
16-
17-
Have a look at: https://wundergraph.com
18-
19-
WunderGraph allows you to treat APIs like packages.
20-
Install, share & integrate as simple as npm install.
21-
22-
### Tyk
23-
24-
Need a full lifecycle Api Management solution with 1st Class GraphQL Support?
25-
Go check out https://tyk.io
26-
27-
Tyk is the best in class FLAPIM solution to manage all your APIs.
28-
Turn REST APIs into GraphQL using the GUI in no time
29-
thanks to tyk's Universal Data Graph.
30-
315
## Apollo Federation Gateway Replacement
326

337
This library can be used as a replacement for the Apollo Federation Gateway.
@@ -91,7 +65,7 @@ This repos uses go modules so make sure to use the latest version of Go.
9165

9266
## Docs
9367

94-
https://godoc.org/github.com/jensneuse/graphql-go-tools
68+
https://godoc.org/github.com/wundergraph/graphql-go-tools
9569

9670
## Usage
9771

@@ -117,7 +91,7 @@ Feel free to add comparisons via PR.
11791

11892
Parse Kitchen Sink (1020 chars, example from Facebook):
11993
```shell script
120-
pkg: github.com/jensneuse/graphql-go-tools/pkg/astparser
94+
pkg: github.com/wundergraph/graphql-go-tools/pkg/astparser
12195
BenchmarkKitchenSink 189426 5652 ns/op 0 B/op 0 allocs/op
12296
BenchmarkKitchenSink 198253 5526 ns/op 0 B/op 0 allocs/op
12397
BenchmarkKitchenSink 199924 5553 ns/op 0 B/op 0 allocs/op
@@ -133,14 +107,14 @@ CPU and Memory consumption for lexing, parsing as well as most other operations
133107
- Contributions to the http proxy & the Context Middleware
134108
- [Jonas Bergner][jonas-bergner-github]
135109
- Contributions to the initial version of the parser, contributions to the tests
136-
- Implemented Type Extension merging [#108](https://github.com/jensneuse/graphql-go-tools/pull/108)
110+
- Implemented Type Extension merging [#108](https://github.com/wundergraph/graphql-go-tools/pull/108)
137111
- [Patric Vormstein][patric-vormstein-github] (Active Maintainer)
138-
- Fixed lexer on windows [#92](https://github.com/jensneuse/graphql-go-tools/pull/92)
112+
- Fixed lexer on windows [#92](https://github.com/wundergraph/graphql-go-tools/pull/92)
139113
- Author of the graphql package to simplify the usage of the library
140114
- Refactored the http package to simplify usage with http servers
141115
- Author of the starwars package to enhance testing
142116
- [Sergey Petrunin][sergey-petrunin-github] (Active Maintainer)
143-
- Helped cleaning up the API of the pipeline package [#166](https://github.com/jensneuse/graphql-go-tools/pull/166)
117+
- Helped cleaning up the API of the pipeline package [#166](https://github.com/wundergraph/graphql-go-tools/pull/166)
144118
- Refactored the ast package into multiple files
145119
- Author of the introspection converter (introspection JSON -> AST)
146120
- Fixed various bugs in the parser & visitor & printer

cmd/directiveUnmarshalCode.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77

88
"github.com/spf13/cobra"
99

10-
"github.com/jensneuse/graphql-go-tools/pkg/ast"
11-
"github.com/jensneuse/graphql-go-tools/pkg/astparser"
12-
"github.com/jensneuse/graphql-go-tools/pkg/codegen"
13-
"github.com/jensneuse/graphql-go-tools/pkg/imports"
14-
"github.com/jensneuse/graphql-go-tools/pkg/operationreport"
10+
"github.com/wundergraph/graphql-go-tools/pkg/ast"
11+
"github.com/wundergraph/graphql-go-tools/pkg/astparser"
12+
"github.com/wundergraph/graphql-go-tools/pkg/codegen"
13+
"github.com/wundergraph/graphql-go-tools/pkg/imports"
14+
"github.com/wundergraph/graphql-go-tools/pkg/operationreport"
1515
)
1616

1717
var (

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// - GraphQL APIs (you can combine multiple GraphQL APIs into one single GraphQL Endpoint, nesting is possible)
2323
// - Webassembly/WASM Lambdas (e.g. resolve a field using a Rust lambda)
2424
//
25-
// If you're looking for a ready to use solution that has all this functionality packaged as a Gateway have a look at: https://github.com/jensneuse/graphql-gateway
25+
// If you're looking for a ready to use solution that has all this functionality packaged as a Gateway have a look at: https://wundergraph.com
2626
//
2727
// Created by Jens Neuse
2828
package main

examples/chat/.gqlgen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
models:
22
Chatroom:
3-
model: github.com/jensneuse/graphql-go-tools/examples/chat.Chatroom
3+
model: github.com/wundergraph/graphql-go-tools/examples/chat.Chatroom

examples/chat/go.mod

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
module github.com/jensneuse/graphql-go-tools/examples/chat
1+
module github.com/wundergraph/graphql-go-tools/examples/chat
22

3-
go 1.15
3+
go 1.18
44

55
require (
66
github.com/99designs/gqlgen v0.13.0
@@ -9,3 +9,12 @@ require (
99
github.com/stretchr/testify v1.7.0
1010
github.com/vektah/gqlparser/v2 v2.2.0
1111
)
12+
13+
require (
14+
github.com/agnivade/levenshtein v1.0.3 // indirect
15+
github.com/davecgh/go-spew v1.1.1 // indirect
16+
github.com/hashicorp/golang-lru v0.5.0 // indirect
17+
github.com/mitchellh/mapstructure v0.0.0-20180203102830-a4e142e9c047 // indirect
18+
github.com/pmezard/go-difflib v1.0.0 // indirect
19+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
20+
)

examples/chat/go.sum

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,15 @@ github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNg
88
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8=
99
github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0 h1:jfIu9sQUG6Ig+0+Ap1h4unLjW6YQJpKZVmUzxsD4E/Q=
1010
github.com/arbovm/levenshtein v0.0.0-20160628152529-48b4e1c0c4d0/go.mod h1:t2tdKJDJF9BV14lnkjHmOQgcvEKgtqs5a1N3LNdJhGE=
11-
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
1211
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
1312
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1413
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
1514
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1615
github.com/dgryski/trifles v0.0.0-20190318185328-a8d75aae118c h1:TUuUh0Xgj97tLMNtWtNvI9mIV6isjEb9lBMNv+77IGM=
1716
github.com/dgryski/trifles v0.0.0-20190318185328-a8d75aae118c/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA=
1817
github.com/go-chi/chi v3.3.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ=
19-
github.com/gogo/protobuf v1.0.0 h1:2jyBKDKU/8v3v2xVR2PtiWQviFUyiaGk2rpfyFT8rTM=
2018
github.com/gogo/protobuf v1.0.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
21-
github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f h1:9oNbS1z4rVpbnkHBdPZU4jo9bSmrLpII768arSyMFgk=
2219
github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
23-
github.com/gorilla/mux v1.6.1 h1:KOwqsTYZdeuMacU7CxjMNYEKeBvLbxW+psodrbcEa3A=
2420
github.com/gorilla/mux v1.6.1/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
2521
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
2622
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
@@ -38,32 +34,25 @@ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd
3834
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
3935
github.com/mitchellh/mapstructure v0.0.0-20180203102830-a4e142e9c047 h1:zCoDWFD5nrJJVjbXiDZcVhOBSzKn3o9LgRLLMRNuru8=
4036
github.com/mitchellh/mapstructure v0.0.0-20180203102830-a4e142e9c047/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
41-
github.com/opentracing/basictracer-go v1.0.0 h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo=
4237
github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74=
4338
github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
44-
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
4539
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
4640
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
4741
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
4842
github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
4943
github.com/rs/cors v1.7.0 h1:+88SsELBHx5r+hZ8TCkggzSstaWNbDvThkVK8H6f9ik=
5044
github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
51-
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
5245
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
5346
github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
5447
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
55-
github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371 h1:SWV2fHctRpRrp49VXJ6UZja7gU9QLHwRpIPBN89SKEo=
5648
github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg=
57-
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
5849
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
59-
github.com/shurcooL/vfsgen v0.0.0-20180121065927-ffb13db8def0 h1:JJV9CsgM9EC9w2iVkwuz+sMx8yRFe89PJRUrv6hPCIA=
6050
github.com/shurcooL/vfsgen v0.0.0-20180121065927-ffb13db8def0/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=
6151
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
6252
github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
6353
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
6454
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
6555
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
66-
github.com/urfave/cli/v2 v2.1.1 h1:Qt8FeAtxE/vfdrLmR3rxR6JRE0RoVmbXu8+6kZtYU4k=
6756
github.com/urfave/cli/v2 v2.1.1/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ=
6857
github.com/vektah/dataloaden v0.2.1-0.20190515034641-a19b9a6e7c9e/go.mod h1:/HUdMve7rvxZma+2ZELQeNh88+003LL7Pf/CZ089j8U=
6958
github.com/vektah/gqlparser/v2 v2.1.0/go.mod h1:SyUiHgLATUR8BiYURfTirrTcGpcE+4XkV2se04Px1Ms=
@@ -83,7 +72,6 @@ golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7w
8372
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
8473
golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
8574
golang.org/x/tools v0.0.0-20190515012406-7d7faa4812bd/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
86-
golang.org/x/tools v0.0.0-20200114235610-7ae403b6b589 h1:rjUrONFu4kLchcZTfp3/96bR8bW8dIa8uz3cR5n0cgM=
8775
golang.org/x/tools v0.0.0-20200114235610-7ae403b6b589/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
8876
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
8977
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
@@ -95,5 +83,4 @@ gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
9583
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
9684
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
9785
sourcegraph.com/sourcegraph/appdash v0.0.0-20180110180208-2cc67fd64755/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
98-
sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67 h1:e1sMhtVq9AfcEy8AXNb8eSg6gbzfdpYhoNqnPJa+GzI=
9986
sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67/go.mod h1:L5q+DGLGOQFpo1snNEkLOJT2d1YTW66rWNzatr3He1k=

examples/chat/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/99designs/gqlgen/graphql/playground"
88
"github.com/rs/cors"
99

10-
"github.com/jensneuse/graphql-go-tools/examples/chat"
10+
"github.com/wundergraph/graphql-go-tools/examples/chat"
1111
)
1212

1313
func main() {

examples/federation/accounts/gqlgen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resolver:
3434
# gqlgen will search for any type names in the schema in these go packages
3535
# if they match it will use them, otherwise it will generate them.
3636
autobind:
37-
- "github.com/jensneuse/graphql-go-tools/examples/federation/accounts/graph/model"
37+
- "github.com/wundergraph/graphql-go-tools/examples/federation/accounts/graph/model"
3838

3939
# This section declares type mapping between the GraphQL and go type systems
4040
#

examples/federation/accounts/graph/entity.resolvers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package graph
66
import (
77
"context"
88

9-
"github.com/jensneuse/graphql-go-tools/examples/federation/accounts/graph/generated"
10-
"github.com/jensneuse/graphql-go-tools/examples/federation/accounts/graph/model"
9+
"github.com/wundergraph/graphql-go-tools/examples/federation/accounts/graph/generated"
10+
"github.com/wundergraph/graphql-go-tools/examples/federation/accounts/graph/model"
1111
)
1212

1313
func (r *entityResolver) FindUserByID(ctx context.Context, id string) (*model.User, error) {

0 commit comments

Comments
 (0)