Skip to content

Commit

Permalink
Merge pull request authorizerdev#254 from authorizerdev/feat/update-g…
Browse files Browse the repository at this point in the history
…qlgen-0.17.20

chore: update gqlgen to 0.17.20
  • Loading branch information
lakhansamani authored Oct 1, 2022
2 parents cfbce17 + 6f46f1e commit e5972a0
Show file tree
Hide file tree
Showing 9 changed files with 7,133 additions and 3,153 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ test-all-db:
docker rm -vf authorizer_mongodb_db
docker rm -vf authorizer_arangodb
generate:
cd server && go get github.com/99designs/gqlgen/[email protected] && go run github.com/99designs/gqlgen generate

cd server && go run github.com/99designs/gqlgen generate && go mod tidy
11 changes: 3 additions & 8 deletions server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/authorizerdev/authorizer/server
go 1.16

require (
github.com/99designs/gqlgen v0.14.0
github.com/99designs/gqlgen v0.17.20
github.com/arangodb/go-driver v1.2.1
github.com/coreos/go-oidc/v3 v3.1.0
github.com/gin-gonic/gin v1.7.2
Expand All @@ -15,25 +15,20 @@ require (
github.com/google/uuid v1.3.0
github.com/joho/godotenv v1.3.0
github.com/json-iterator/go v1.1.11 // indirect
github.com/mattn/go-isatty v0.0.13 // indirect
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.7.0
github.com/stretchr/testify v1.7.1
github.com/ugorji/go v1.2.6 // indirect
github.com/vektah/gqlparser/v2 v2.2.0
github.com/vektah/gqlparser/v2 v2.5.1
go.mongodb.org/mongo-driver v1.8.1
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/mail.v2 v2.3.1
gopkg.in/square/go-jose.v2 v2.6.0
gopkg.in/yaml.v2 v2.4.0 // indirect
gorm.io/driver/mysql v1.2.1
gorm.io/driver/postgres v1.2.3
gorm.io/driver/sqlite v1.2.6
Expand Down
100 changes: 53 additions & 47 deletions server/go.sum

Large diffs are not rendered by default.

23 changes: 15 additions & 8 deletions server/gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,26 @@ resolver:
dir: graph
package: graph

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

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

# Optional: turn off to make struct-type struct fields not use pointers
# e.g. type Thing struct { FieldA OtherThing } instead of { FieldA *OtherThing }
# struct_fields_always_pointers: true

# Optional: turn off to make resolvers return values instead of pointers for structs
# resolvers_always_return_pointers: true

# Optional: set to speed up generation time by not performing a final validation pass.
# skip_validation: true

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

# This section declares type mapping between the GraphQL and go type systems
#
Expand All @@ -45,7 +52,6 @@ autobind:
models:
ID:
model:
# - github.com/99designs/gqlgen/graphql.IntID # An go integer
- github.com/99designs/gqlgen/graphql.ID
- github.com/99designs/gqlgen/graphql.Int
- github.com/99designs/gqlgen/graphql.Int64
Expand All @@ -55,11 +61,12 @@ models:
- github.com/99designs/gqlgen/graphql.Int
- github.com/99designs/gqlgen/graphql.Int64
- github.com/99designs/gqlgen/graphql.Int32
Float:
model:
- github.com/99designs/gqlgen/graphql.Float
- github.com/99designs/gqlgen/graphql.Float64
- github.com/99designs/gqlgen/graphql.Float32
Int64:
model:
- github.com/99designs/gqlgen/graphql.Int64
Map:
model:
- github.com/99designs/gqlgen/graphql.Map
Any:
model:
- github.com/99designs/gqlgen/graphql.Any
Loading

0 comments on commit e5972a0

Please sign in to comment.