Fix Serialization Error for Objects with Custom Prototypes #33
Labels
bug
Something isn't working
from_willyovale
An issue described in original project, but never implemented
Description
Attempting to update a Fireorm object containing a map of custom objects results in a serialization error. Firestore does not support JavaScript objects with custom prototypes, leading to issues when saving such objects.
Steps to Reproduce
Expected Behavior
The update should serialize the custom objects correctly and save them to Firestore without errors.
Actual Behavior
A serialization error occurs, stating that Firestore does not support JavaScript objects with custom prototypes.
Acceptance Criteria
Additional Context
Proposed API Changes
Serialize Entities to Plain Objects:
Support for Custom Prototypes:
Helper Function:
Unit Tests:
Example Implementation
Original Issue
The text was updated successfully, but these errors were encountered: