Skip to content

Filter by id causes other filters to be ignored #148

Closed
@claradaia

Description

@claradaia

Hello, I find that if I make a query with a filter by id, other filters are ignored. For example, in the following query:

query players {{
    players(
        id: "UmVwb3J0ZXJOb2RlOjE=",  # id of some player with first_name == "Larry"
        firstName: "Michael"
    ) {{
        edges {{
            node {{
                id
                firstName
            }}
        }}
    }}
}}

I expected an empty list, because the filters should "cancel", but it actually retrieves the "Larry" player.

I created a PR with a test case that reproduces this -- only in relay, but I can check if it happens without relay too.

Is it supposed to be this way? If not, I can try and fix it next week.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions