Closed
Description
Currently it is not possible to pass different args to the same field depending on the concrete type. The following example results in an error about an argument conflict:
foo {
... on TypeOne { image(maxWidth: 200) }
... on TypeTwo { image(maxWidth: 300) }
}
However, the spec (specifically the bottom of https://facebook.github.io/graphql/#sec-Field-Selection-Merging) gives an example very similar to this as a validly mergeable query since the two fields both cannot be encountered against the same object, so they are safe.
Also see graphql/graphql-js#53 and graphql/graphql-js#229
Metadata
Metadata
Assignees
Labels
No labels