Skip to content

Commit e5972a0

Browse files
authored
Merge pull request #254 from authorizerdev/feat/update-gqlgen-0.17.20
chore: update gqlgen to 0.17.20
2 parents cfbce17 + 6f46f1e commit e5972a0

File tree

9 files changed

+7133
-3153
lines changed

9 files changed

+7133
-3153
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,4 @@ test-all-db:
3333
docker rm -vf authorizer_mongodb_db
3434
docker rm -vf authorizer_arangodb
3535
generate:
36-
cd server && go get github.com/99designs/gqlgen/[email protected] && go run github.com/99designs/gqlgen generate
37-
36+
cd server && go run github.com/99designs/gqlgen generate && go mod tidy

server/go.mod

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/authorizerdev/authorizer/server
33
go 1.16
44

55
require (
6-
github.com/99designs/gqlgen v0.14.0
6+
github.com/99designs/gqlgen v0.17.20
77
github.com/arangodb/go-driver v1.2.1
88
github.com/coreos/go-oidc/v3 v3.1.0
99
github.com/gin-gonic/gin v1.7.2
@@ -15,25 +15,20 @@ require (
1515
github.com/google/uuid v1.3.0
1616
github.com/joho/godotenv v1.3.0
1717
github.com/json-iterator/go v1.1.11 // indirect
18-
github.com/mattn/go-isatty v0.0.13 // indirect
19-
github.com/mitchellh/mapstructure v1.1.2 // indirect
2018
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
2119
github.com/modern-go/reflect2 v1.0.1 // indirect
2220
github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f
2321
github.com/sirupsen/logrus v1.8.1
24-
github.com/stretchr/testify v1.7.0
22+
github.com/stretchr/testify v1.7.1
2523
github.com/ugorji/go v1.2.6 // indirect
26-
github.com/vektah/gqlparser/v2 v2.2.0
24+
github.com/vektah/gqlparser/v2 v2.5.1
2725
go.mongodb.org/mongo-driver v1.8.1
2826
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
29-
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
3027
golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914
3128
google.golang.org/appengine v1.6.7 // indirect
32-
google.golang.org/protobuf v1.27.1 // indirect
3329
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
3430
gopkg.in/mail.v2 v2.3.1
3531
gopkg.in/square/go-jose.v2 v2.6.0
36-
gopkg.in/yaml.v2 v2.4.0 // indirect
3732
gorm.io/driver/mysql v1.2.1
3833
gorm.io/driver/postgres v1.2.3
3934
gorm.io/driver/sqlite v1.2.6

server/go.sum

Lines changed: 53 additions & 47 deletions
Large diffs are not rendered by default.

server/gqlgen.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,26 @@ resolver:
2323
dir: graph
2424
package: graph
2525

26-
# Optional: turn on use `gqlgen:"fieldName"` tags in your models
26+
# Optional: turn on use ` + "`" + `gqlgen:"fieldName"` + "`" + ` tags in your models
2727
# struct_tag: json
2828

2929
# Optional: turn on to use []Thing instead of []*Thing
3030
# omit_slice_element_pointers: false
3131

32+
# Optional: turn off to make struct-type struct fields not use pointers
33+
# e.g. type Thing struct { FieldA OtherThing } instead of { FieldA *OtherThing }
34+
# struct_fields_always_pointers: true
35+
36+
# Optional: turn off to make resolvers return values instead of pointers for structs
37+
# resolvers_always_return_pointers: true
38+
3239
# Optional: set to speed up generation time by not performing a final validation pass.
3340
# skip_validation: true
3441

3542
# gqlgen will search for any type names in the schema in these go packages
3643
# if they match it will use them, otherwise it will generate them.
3744
autobind:
38-
- 'github.com/authorizerdev/authorizer/server/graph/model'
45+
# - "github.com/authorizerdev/authorizer/server/graph/model"
3946

4047
# This section declares type mapping between the GraphQL and go type systems
4148
#
@@ -45,7 +52,6 @@ autobind:
4552
models:
4653
ID:
4754
model:
48-
# - github.com/99designs/gqlgen/graphql.IntID # An go integer
4955
- github.com/99designs/gqlgen/graphql.ID
5056
- github.com/99designs/gqlgen/graphql.Int
5157
- github.com/99designs/gqlgen/graphql.Int64
@@ -55,11 +61,12 @@ models:
5561
- github.com/99designs/gqlgen/graphql.Int
5662
- github.com/99designs/gqlgen/graphql.Int64
5763
- github.com/99designs/gqlgen/graphql.Int32
58-
Float:
59-
model:
60-
- github.com/99designs/gqlgen/graphql.Float
61-
- github.com/99designs/gqlgen/graphql.Float64
62-
- github.com/99designs/gqlgen/graphql.Float32
6364
Int64:
6465
model:
6566
- github.com/99designs/gqlgen/graphql.Int64
67+
Map:
68+
model:
69+
- github.com/99designs/gqlgen/graphql.Map
70+
Any:
71+
model:
72+
- github.com/99designs/gqlgen/graphql.Any

0 commit comments

Comments
 (0)