Skip to content

Commit

Permalink
refactor: significantly clean up the federation.gotpl template (#3187)
Browse files Browse the repository at this point in the history
* fix: fix Federation example

Some configurations weren't working due to a missing resolver.

* chore: Introduce mechanism for running all example Federation subgraphs

This enables engineers to more easily run the debugger on the Federation example. Updated README to show how to use it.

* refactor: significantly clean up the federation.gotpl template

There were a number of inline structs and inline functions that made it extremely hard to reason about what the code is doing. Split these out into smaller functions with less closures and mutation.

Part of the setup to help with fixing #2991.
  • Loading branch information
clayne11 authored Jul 18, 2024
1 parent a63f94b commit cd82be0
Show file tree
Hide file tree
Showing 23 changed files with 2,145 additions and 2,291 deletions.
5 changes: 1 addition & 4 deletions _examples/federation/accounts/graph/entity.resolvers.go

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

276 changes: 152 additions & 124 deletions _examples/federation/accounts/graph/federation.go

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

Loading

0 comments on commit cd82be0

Please sign in to comment.