Skip to content

EntityModule only keeps @iot.id of nested entities after JSON serialization #133

@PhilippMatthes

Description

@PhilippMatthes

Currently, it is not clear enough how the EntityModule intends to serialize entities.

Due to the above lines, prepopulated fields of subentities are thrown away. I would like to know the reasoning for this design decision to further understand if this is intended behaviour or not. In our use case, we would like to serialize/deserialize a Thing including its Datastreams and Locations. However, the fields of Datastreams and Locations that were populated by an Expand query are thrown away during JSON serialization. Could you maybe elaborate a bit on the above, and point me into the right direction on how I can serialize the subentities without losing their populated fields and not having to perform separate fetch queries?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions