-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api.main: use node endpoints for all type of Node subtypes
Implement a mechanism for dynamic polymorphism on Node objects by using explicit pydantic object validation depending on the node kind and storing all Node objects as plain nodes in the same DB collection regardless of their type. Signed-off-by: Ricardo Cañuelo <[email protected]>
- Loading branch information
Ricardo Cañuelo
committed
Nov 3, 2023
1 parent
679f689
commit 8952151
Showing
2 changed files
with
50 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters