Skip to content

empty relation shouldn't be treated as null #124

@olaulau

Description

@olaulau

when retrieving a relation which return zero element, cortex gives null instead of a CortexCollection.
this is confusing, and forces us to tread those cases with custom code :

  • if I remove one element from the relation, I can come to zero element, and have to convert my empty collection to null before save
  • if the relation I get is null, I have to create a collection before adding an element to it
    any technical reason for this ?
    thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions