diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-14 14:48:41 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-14 14:48:41 +0200 |
commit | 5c568a362b73cf163b06bc7371982f9a7ceaaf29 (patch) | |
tree | 755b61f969913b5290f3d56f4cfba4070b8155bc /vendor/github.com/vektah/gqlgen/codegen/model.go | |
parent | ef0d8fa108fbdef24997a84a3c6ecbf21cbc0a9e (diff) | |
download | git-bug-5c568a362b73cf163b06bc7371982f9a7ceaaf29.tar.gz |
gqlgen: add a small program to go:generate the code
Diffstat (limited to 'vendor/github.com/vektah/gqlgen/codegen/model.go')
-rw-r--r-- | vendor/github.com/vektah/gqlgen/codegen/model.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/vektah/gqlgen/codegen/model.go b/vendor/github.com/vektah/gqlgen/codegen/model.go new file mode 100644 index 00000000..164a04d5 --- /dev/null +++ b/vendor/github.com/vektah/gqlgen/codegen/model.go @@ -0,0 +1,15 @@ +package codegen + +type Model struct { + *NamedType + + Fields []ModelField +} + +type ModelField struct { + *Type + GQLName string + GoVarName string + GoFKName string + GoFKType string +} |