Skip to content

Empty lists should return [] instead of omitting the field #39

@wravery

Description

@wravery

Bug in ModifiedResult where it handles the List modifier. If values.size() == 0 it doesn't emplace it. Relay seems to not like specifying empty selection sets in the compiled GraphQL, but for the sake of completeness it should probably do the same thing in Object::resolve when data.size() == 0. If all of the specified members are removed due to field errors we could still return an empty {} object and that would at least indicate that the object exists.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions