Skip to content

Sync API: Result of sync does not provide transformation support #210

@drezzzik

Description

@drezzzik

Hello,

After a sync action, there is no possibility to transform downloaded entries to local data/POJO classes annotated properly.

Such action is possible for fetch like actions client.observeAndTransform(LocalDataClass::class.java).

Workaround is to slightly change com.contentful.java.cda.TransformQuery class (btw it is in Beta for some time), add it to own project and then transform entries to local classes like this:

val transformQuery = TransformQuery(LocalDataClass::class.java, client)

then to call transform

transformQuery.transform(synchronizedSpace.entries().value) as LocalDataClass

I hope this project will become active, again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions