Skip to content

Allowlist Bug: including an unused fragment results in whole query being blocked (2.0.0 alpha v6)? #6750

Open
@kennandavison

Description

@kennandavison

Hi, I have an allowlist operation that looks like:

query exampleQuery($where: a_bool_exp!) {
  a(where: $where) {
    ...frag
    b {
      id 
    }
  }
}

fragment frag on a {
  id
}

When I include a fragment for b, it seems to get blocked even if I'm not using it:

query exampleQuery($where: a_bool_exp!) {
  a(where: $where) {
    ...frag
    b {
      id
    }
  }
}

fragment frag on a {
  id
}
fragment frag2 on b {
  id
}

Exact same fields. The mere insertion of the fragment without even using it seems to get the whole query blocked. Any idea? Literally just this 1 query of 100+.

Not sure if this related: #5156

Metadata

Metadata

Assignees

No one assigned

    Labels

    a/apia/api/graphqlsupport/needs-triageNeeds to be triaged so that we have enough information to add this to our backlog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions