Skip to content

Argument conflict on interface type fragments #418

Closed
@eapache

Description

@eapache

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.

cc @dylanahsmith @swalkinshaw

Also see graphql/graphql-js#53 and graphql/graphql-js#229

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions