-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fix return error only #99
Fix return error only #99
Conversation
FWIW: I tested the change to http.go on some of my queries and it looks mostly OK to me. I'm loading a list of items, each with a child object that is federated (the first service resolves only the One question though (and this may be a future enhancement): For the element that failed federation I still get the To make it more concrete, I basically have this (psuedo-code) schema in service 1: type Query {
getParents() [Parent]!
}
type Parent {
id: ID!
child: Child!
}
type Child implements Node {
id: ID!
} and this in service 2: type Child implements Node {
id: ID!
name: String!
} And now when I run this query: {
getParents {
child {
id
name
}
}
} I get This seems like it breaks the schema agreement to me. The service is now returning an object without some of the required fields. I think in those failure cases we may need to bubble up the null value to the parent, and so on, until we reach a nullable parent. That would keep to the GQL spec. |
Hello again! No worries about forgetting a few places, it's a pretty small change so it's easy to take in a few at a time. Once the merge conflict is resolved, I'll merge it in. Also to answer your question, you are absolutely right. This does violate the schema agreement. Would you please copy and paste what you just wrote into a new issue? If it's something you want to try to address, I can offer some guidance on how I would approach it. Otherwise, someone will get to it eventually |
Sure thing! Created #100 I probably won't be able to address this right away. I'm about to start ramping up on a new project. But if I get a chance I'll ping you for guidance. Thanks! |
@longquan0104 since rebasing on master, it seems that the only net change is a single new empty line. Can you confirm? If so, I'll go ahead and close this |
Sorry that I edited wrong line. I just re-edit it |
Ah there we go! Alright, looks good to me |
Sorry I forget to add http.go when commit