You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i entity in on subgraph which does have @requires from another subgraph entity, Resolvers does not generated where i can access the required attribute from another subgraph
What did you expect?
func (r *queryResolver) Screen(ctx context.Context, id string) (*model.GuideScreen, error) {
return FindScreen(id)
}
this method should be generated with asset input
Somehow router skips calling subgraph 2 before calling subgraph1 and throwing error
interface conversion: interface {} is nil, not map[string]interface {}
type Entity @key(fields: "id") {
id: ID!
independentString: String
otherEntity: Other
dependentString: String @requires(fields: "OtherEntity { supplementaryString }")
}
type OtherEntity @key(fields: "id") {
id: ID!
supplementaryString: String @external
}
Subgraph2
type Other @key(fields: "id") {
id: ID!
supplementaryString: String
}
When we generate boilerplate and implement schema resolver and entity resolver for both subgraph. Somehow subgraph2 never gets called from router. and tries to fetch directly from Subgraph1
What happened?
When i entity in on subgraph which does have @requires from another subgraph entity, Resolvers does not generated where i can access the required attribute from another subgraph
What did you expect?
Minimal graphql.schema and models to reproduce
Subgraph1
Subgraph2
versions
v0.17.29
go1.20.3
?In federation.go i can see
Thank you
The text was updated successfully, but these errors were encountered: