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
We are currently trying to migrate from Apollo GraphOS to Hive and it works mostly great, except for one thing: we use @interfaceObject in one place, and it doesn't appear to compose.
If we follow the Apollo example here and use those schemas:
[
GraphQLError: The following supergraph API query:
{
topRatedMedia {
... on Book {
reviews {
...
}
}
}
}
cannot be satisfied by the subgraphs because:
- from subgraph "a": cannot find field "Book.reviews".
at check (file:///Users/zoontek/Projects/swan/interface-object-issue/node_modules/@theguild/federation-composition/esm/supergraph/validation/rules/satisfiablity-rule.js:56:33)
at file:///Users/zoontek/Projects/swan/interface-object-issue/node_modules/@theguild/federation-composition/esm/supergraph/validation/rules/satisfiablity-rule.js:83:62
at Set.forEach (<anonymous>)
at Object.InterfaceTypeField (file:///Users/zoontek/Projects/swan/interface-object-issue/node_modules/@theguild/federation-composition/esm/supergraph/validation/rules/satisfiablity-rule.js:83:42)
at file:///Users/zoontek/Projects/swan/interface-object-issue/node_modules/@theguild/federation-composition/esm/supergraph/composition/visitor.js:53:29
at Map.forEach (<anonymous>)
at visitSupergraphState (file:///Users/zoontek/Projects/swan/interface-object-issue/node_modules/@theguild/federation-composition/esm/supergraph/composition/visitor.js:44:36)
at validateSupergraph (file:///Users/zoontek/Projects/swan/interface-object-issue/node_modules/@theguild/federation-composition/esm/supergraph/validation/validate-supergraph.js:74:5)
at validate (file:///Users/zoontek/Projects/swan/interface-object-issue/node_modules/@theguild/federation-composition/esm/validate.js:118:30)
at composeServices (file:///Users/zoontek/Projects/swan/interface-object-issue/node_modules/@theguild/federation-composition/esm/compose.js:13:30) {
path: undefined,
locations: undefined,
extensions: { code: 'SATISFIABILITY_ERROR' }
}
]
👉 If you want to reproduce the error quickly, clone this repository
The text was updated successfully, but these errors were encountered:
Hi folks! 👋
We are currently trying to migrate from Apollo GraphOS to Hive and it works mostly great, except for one thing: we use
@interfaceObject
in one place, and it doesn't appear to compose.If we follow the Apollo example here and use those schemas:
They will not compose ❌:
👉 If you want to reproduce the error quickly, clone this repository
The text was updated successfully, but these errors were encountered: