Skip to content

Commit

Permalink
Merge pull request #1285 from Khan/benkraft.federation
Browse files Browse the repository at this point in the history
Resolve requests for federation entities in parallel
  • Loading branch information
lwc authored Sep 8, 2021
2 parents 56451d9 + 9565319 commit 522cab5
Show file tree
Hide file tree
Showing 8 changed files with 189 additions and 43 deletions.
1 change: 1 addition & 0 deletions codegen/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func (b *builder) bindField(obj *Object, f *Field) (errret error) {
f.GoReceiverName = "ec"
f.GoFieldName = "__resolve_entities"
f.MethodHasContext = true
f.NoErr = true
return nil
case f.Name == "_service":
f.GoFieldType = GoFieldMethod
Expand Down
54 changes: 45 additions & 9 deletions example/federation/accounts/graph/generated/federation.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/federation/accounts/graph/generated/generated.go

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

54 changes: 45 additions & 9 deletions example/federation/products/graph/generated/federation.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/federation/products/graph/generated/generated.go

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

61 changes: 49 additions & 12 deletions example/federation/reviews/graph/generated/federation.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/federation/reviews/graph/generated/generated.go

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

Loading

0 comments on commit 522cab5

Please sign in to comment.