You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backlinks in a Realm object cause a stack overflow error when exporting to EJson. This is somewhat expected, as following backlinks will certainly lead to circular references.
Solution
Ideally we would be able to annotate fields to specify how we want to export them. Maybe we some fields excluded, or other to be shallowly exported (id only).
Alternatives
Currently we can write a custom export function, but then we don't get to use the magic of auto-generated code.
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only
The text was updated successfully, but these errors were encountered:
@derrickgw Thank you for reporting this. Backlinks obviously shouldn't be serialized as they are guaranteed to cause cycles during serialization, and are never used during de-serialization as it is a computed value. I will fix that promptly.
But the problem can occur without backlinks as well, if you use explicit cycles in your model.
Problem
Backlinks in a Realm object cause a stack overflow error when exporting to EJson. This is somewhat expected, as following backlinks will certainly lead to circular references.
Solution
Ideally we would be able to annotate fields to specify how we want to export them. Maybe we some fields excluded, or other to be shallowly exported (id only).
Alternatives
Currently we can write a custom export function, but then we don't get to use the magic of auto-generated code.
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only
The text was updated successfully, but these errors were encountered: