forked from 99designs/gqlgen
-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
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
2 changes: 1 addition & 1 deletion
2
plugin/resolvergen/testdata/followschema/out/schema.resolvers.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
plugin/resolvergen/testdata/resolver_implementor/gqlgen.yml
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,15 @@ | ||
schema: | ||
- "testdata/schema.graphql" | ||
|
||
exec: | ||
filename: testdata/resolver_implementor/out/ignored.go | ||
model: | ||
filename: testdata/resolver_implementor/out/generated.go | ||
resolver: | ||
type: CustomResolverType | ||
layout: follow-schema | ||
dir: testdata/resolver_implementor/out | ||
|
||
models: | ||
Resolver: | ||
model: github.com/99designs/gqlgen/plugin/resolvergen/testdata/resolver_implementor/out.Resolver |
13 changes: 13 additions & 0 deletions
13
plugin/resolvergen/testdata/resolver_implementor/out/model.go
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,13 @@ | ||
package customresolver | ||
|
||
import "context" | ||
|
||
type Resolver struct{} | ||
|
||
type QueryResolver interface { | ||
Resolver(ctx context.Context) (*Resolver, error) | ||
} | ||
|
||
type ResolverResolver interface { | ||
Name(ctx context.Context, obj *Resolver) (string, error) | ||
} |
7 changes: 7 additions & 0 deletions
7
plugin/resolvergen/testdata/resolver_implementor/out/resolver.go
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 customresolver | ||
|
||
// This file will not be regenerated automatically. | ||
// | ||
// It serves as dependency injection for your app, add any dependencies you require here. | ||
|
||
type CustomResolverType struct{} |
28 changes: 28 additions & 0 deletions
28
plugin/resolvergen/testdata/resolver_implementor/out/schema.resolvers.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.