Skip to content

Commit

Permalink
Merge pull request #701 from 99designs/modelgen-pointers
Browse files Browse the repository at this point in the history
Use pointers when embedding structs in generated structs
  • Loading branch information
vektah authored May 12, 2019
2 parents e2ac848 + 4f5e9cf commit 9ca43ba
Show file tree
Hide file tree
Showing 11 changed files with 310 additions and 41 deletions.
200 changes: 196 additions & 4 deletions codegen/testserver/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions codegen/testserver/loops.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type LoopA {
b: LoopB!
}

type LoopB {
a: LoopA!
}
14 changes: 11 additions & 3 deletions codegen/testserver/models-gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions example/config/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/config/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9ca43ba

Please sign in to comment.