Skip to content

Commit

Permalink
Revert "Support for multiple @key directives in federation (#1684)" (#…
Browse files Browse the repository at this point in the history
…1698)

This reverts commit 47de912.
  • Loading branch information
StevenACoffman authored Nov 8, 2021
1 parent 4a4b560 commit b7db36d
Show file tree
Hide file tree
Showing 15 changed files with 163 additions and 439 deletions.
38 changes: 15 additions & 23 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.

9 changes: 0 additions & 9 deletions example/federation/products/graph/entity.resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@ func (r *entityResolver) FindProductByManufacturerIDAndID(ctx context.Context, m
return nil, nil
}

func (r *entityResolver) FindProductByUpc(ctx context.Context, upc string) (*model.Product, error) {
for _, hat := range hats {
if hat.Upc == upc {
return hat, nil
}
}
return nil, nil
}

// Entity returns generated.EntityResolver implementation.
func (r *Resolver) Entity() generated.EntityResolver { return &entityResolver{r} }

Expand Down
53 changes: 18 additions & 35 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.

97 changes: 1 addition & 96 deletions example/federation/products/graph/generated/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/federation/products/graph/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Manufacturer @key(fields: "id") {
name: String!
}

type Product @key(fields: "manufacturer { id } id") @key(fields: "upc") {
type Product @key(fields: "manufacturer { id } id") {
id: String!
manufacturer: Manufacturer!
upc: String!
Expand Down
44 changes: 18 additions & 26 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.

1 change: 0 additions & 1 deletion plugin/federation/.gitignore

This file was deleted.

Loading

0 comments on commit b7db36d

Please sign in to comment.