Converts relation to its JSON representation. Accepts both reactive relations and snapshots.
O(n) in entity size; serializes the whole entity on every call.
Converts relation to its JSON representation. Accepts both reactive relations and snapshots.