Skip to content

mask_disable on an include directive incorrectly bubbles null up to the parent #1550

@SeppahBaws

Description

@SeppahBaws

Describe the bug

query Test {
  user(id: "1") {
    id
    ...UserDetails @mask_disable @include(if: false) # or a Boolean variable that evaluates to false
  }
}
fragment UserDetails on User {
  birthDate
}

The expectation is that $Test.data would contain { user: { id: "1"} }, but instead I get { user: null } (if the user query returns User) or even just $Test.data = null if the user query returns User!

Reproduction

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions