Support Complex Data Types with Custom Prototypes #31
Labels
bug
Something isn't working
from_willyovale
An issue described in original project, but never implemented
Description
Firestore does not support JavaScript objects with custom prototypes, such as those created via the
new
operator. This limitation causes issues when trying to save instances of classes with custom prototypes to Firestore. A workaround is needed to serialize these objects correctly before storing them in Firestore.Steps to Reproduce
Expected Behavior
Ability to save instances of classes with custom prototypes to Fireorm, with proper serialization to comply with Firestore's requirements.
Actual Behavior
Firestore throws an error when attempting to save objects with custom prototypes.
Acceptance Criteria
Additional Context
Proposed API Changes
Serialize Entities to Plain Objects:
Support for Custom Prototypes:
Unit Tests:
Example Implementation
Original Issue
The text was updated successfully, but these errors were encountered: