Skip to content

Multiple query/mutation fields short circuited by __typename in apollo, apollo 4, and envelope plugins #254

@SimplyKnownAsG

Description

@SimplyKnownAsG

A mutation (probably query too) with multiple fields (operations calls) will short circuit checking the @constraint in the subsequent inputs when using the apollo, apollo 4, and evenelope plugins.

Example (using the existing test typeDefs)

mutation multipleMutations($input1: BookInput, $input2: BookInput) {
  one: createBook(input: $input1) {
    title __typename
  }

  two: createBook(input: $input2) {
    title __typename
  }
}

Non-conforming $input2 values are ignored. I think it might have something to do with this BREAK, but I haven't figured that out yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions