forked from Glyphack/graphql-golang
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
151 additions
and
3,373 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
module github.com/glyphack/go-graphql-hackernews | ||
module github.com/glyphack/graphlq-golang | ||
|
||
go 1.13 | ||
|
||
require ( | ||
github.com/99designs/gqlgen v0.10.2 | ||
github.com/99designs/gqlgen v0.11.3 | ||
github.com/Microsoft/go-winio v0.4.14 // indirect | ||
github.com/dgrijalva/jwt-go v3.2.0+incompatible | ||
github.com/docker/distribution v2.7.1+incompatible // indirect | ||
github.com/docker/docker v1.13.1 // indirect | ||
github.com/docker/go-connections v0.4.0 // indirect | ||
github.com/docker/go-units v0.4.0 // indirect | ||
github.com/go-chi/chi v3.3.2+incompatible | ||
github.com/go-sql-driver/mysql v1.5.0 | ||
github.com/golang-migrate/migrate v3.5.4+incompatible | ||
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect | ||
github.com/vektah/gqlparser v1.3.1 | ||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 | ||
github.com/urfave/cli v1.20.0 // indirect | ||
github.com/vektah/gqlparser v1.3.1 // indirect | ||
github.com/vektah/gqlparser/v2 v2.0.1 | ||
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,56 @@ | ||
# .gqlgen.yml example | ||
# | ||
# Refer to https://gqlgen.com/config/ | ||
# for detailed .gqlgen.yml documentation. | ||
|
||
# Where are all the schema files located? globs are supported eg src/**/*.graphqls | ||
schema: | ||
- schema.graphql | ||
- graph/*.graphqls | ||
|
||
# Where should the generated server code go? | ||
exec: | ||
filename: generated.go | ||
filename: graph/generated/generated.go | ||
package: generated | ||
|
||
# Uncomment to enable federation | ||
# federation: | ||
# filename: graph/generated/federation.go | ||
# package: generated | ||
|
||
# Where should any generated models go? | ||
model: | ||
filename: models_gen.go | ||
filename: graph/model/models_gen.go | ||
package: model | ||
|
||
# Where should the resolver implementations go? | ||
resolver: | ||
filename: resolver.go | ||
type: Resolver | ||
autobind: [] | ||
layout: follow-schema | ||
dir: graph | ||
package: graph | ||
|
||
# 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: 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/glyphack/graphlq-golang/graph/model" | ||
|
||
# This section declares type mapping between the GraphQL and go type systems | ||
# | ||
# The first line in each type will be used as defaults for resolver arguments and | ||
# modelgen, the others will be allowed when binding to fields. Configure them to | ||
# your liking | ||
models: | ||
ID: | ||
model: | ||
- github.com/99designs/gqlgen/graphql.ID | ||
- github.com/99designs/gqlgen/graphql.Int | ||
- github.com/99designs/gqlgen/graphql.Int64 | ||
- github.com/99designs/gqlgen/graphql.Int32 | ||
Int: | ||
model: | ||
- github.com/99designs/gqlgen/graphql.Int | ||
- github.com/99designs/gqlgen/graphql.Int64 | ||
- github.com/99designs/gqlgen/graphql.Int32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package graph | ||
|
||
// This file will not be regenerated automatically. | ||
// | ||
// It serves as dependency injection for your app, add any dependencies you require here. | ||
|
||
type Resolver struct{} |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.