Skip to content

Missing relationship data causes parent data to not be returned #101

Closed
@molexx

Description

@molexx

If a query nests to a relationship and there are no rows for that relationship then the parent's data is not returned.

e.g.:

query {
    Humans {
        select {
            id
            name
            homePlanet
        }
    }
}

returns 5 humans. Some have a homePlanet of null and that's fine.

But if you also want to see those humans' favoriteDroid:

query {
    Humans {
        select {
            id
            name
            homePlanet
            favoriteDroid {
              name
            }
        }
    }
}

it only returns 2 humans. Those who don't have a favoriteDroid aren't listed. I think they should be listed and just have a favouriteDroid of null?

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