-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entities subscription #25
Comments
@DiegoAlar Could you describe your problem more verbose? P.s. |
@Aeliot-Tm I think we're experiencing the same issue, in which case the issue is that if a type is not directly or indirectly referenced by the Query type, the type is not discovered as an entity. Consider the following sub-graph schemas: # Subgraph A
extend type Query {
restaurants: [Restaurant!]!
}
type Restaurant {
id: ID! @key
name: String!
}
# Subgraph B
extend type Query {
locations: [Location!]!
}
type Location {
lat: Float!
long: Float!
}
extend type Restaurant {
id: ID! @key
location: Location!
} Note that in Subgraph B, the Query type does not reference the Restaurant Type. If this schema is implemented using this library, it is unable to discover that the Restaurant type is an Entity, because |
Hi,
I'm having the following issue with the library in this part of the code:
apollo-federation-php/src/FederatedSchema.php
Lines 215 to 227 in 4f958dd
The issue is that the library is unable to subscribe entities that aren't returned by a query.
Thank you!
The text was updated successfully, but these errors were encountered: