-
Hello! I have two subgraphs (simplified): First subgraph: type Error {
message: String!
}
type CaptchaVerifyInput {
token: String!
text: String!
}
type CaptchaVerifyResult {
error: Error
mutation: Mutation
}
type Mutation {
verifyCaptcha(input: CaptchaVerifyInput!): CaptchaVerifyResult
} Second subgraph: type Error {
message: String!
}
type Item {
id: ID!
title: String!
}
type UpdateItemInput {
id: ID!
title: String!
}
type UpdateItemResult {
record: Item
error: Error
}
type Mutation {
updateItem(input: UpdateItemInput!): UpdateItemResult
} After composing, I can do next thing: mutation UpdateItem {
verifyCaptcha(input: {
token: "foo",
text: "bar",
}) {
mutation {
updateItem(input: {
id: "1",
title: "Changed!",
}) {
record {
id
title
}
error {
message
}
}
}
}
} In first subgraph I return Can you tell me, is this bug or expected behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
As I can see, query plans are identical both at router
@apollo/gateway
|
Beta Was this translation helpful? Give feedback.
-
I know this is older, and I'm just doing some cleanup, but we don't have enough to reproduce this above. If you're still running into a stark difference between the Router and the Gateway in this regard, please open an issue with an easy to run reproduction. Thanks! |
Beta Was this translation helpful? Give feedback.
I know this is older, and I'm just doing some cleanup, but we don't have enough to reproduce this above. If you're still running into a stark difference between the Router and the Gateway in this regard, please open an issue with an easy to run reproduction. Thanks!