Skip to content

Issue with nested serializers: expected iterable but did not find one #1102

Open
@coler-j

Description

@coler-j

Running into similar issue to these issues:

This was supposed to be resolved in #395

I am on version2.13.0

I have a nested serialized using many=True for the related serializer, everything saves fine, but on return I am getting:

File "/../graphql/execution/executor.py", line 531, in <lambda>
    lambda resolved: complete_value(
  File "/../graphql/execution/executor.py", line 566, in complete_value
    return complete_list_value(
  File "/../graphql/execution/executor.py", line 603, in complete_list_value
    assert isinstance(result, Iterable), (
AssertionError: User Error: expected iterable, but did not find one for field MyObjectMutationPayload.objects.

This seems to imply there is an issue with the return data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions