Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add polymorphic serializer #66

Merged
merged 1 commit into from
Sep 4, 2023
Merged

Conversation

egmacke
Copy link
Collaborator

@egmacke egmacke commented Sep 1, 2023

Fixes #65

test/issue-65.test.ts Outdated Show resolved Hide resolved
@jun-sheaf jun-sheaf changed the title feat: add polymprphic serializer feat: add polymorphic serializer Sep 1, 2023
class Model {
id: string;

children: Child[];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, congratulations on your first child! I saw you replied on one of the issues and I wanted to congratulate you :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Still getting used to the change in sleep patterns, but loving it :D

Use default serializer when none defined for child type
@egmacke egmacke merged commit d440f87 into mathematic-inc:main Sep 4, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Support polymorphic relationships
2 participants