Replies: 1 comment
-
There is no additional abstraction between TypeBox and Feathers so what is described in the issue should work. I usually try to avoid circular dependencies because they always cause more issues than they help solve and instead try to design a unidirectional data model. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Following the tip in #2993,
I'm blocked when I want to specify schemas with circular dependencies.
Example :
I have users, and workspaces.
Each
user
can have severalworkspace
, but oneworkspace
belongs to oneuser
.So I would like to specify my schemas like this :
I find an issue on typebox talking about this sinclairzx81/typebox#106
But I can't figure out to make this work in Feathers...
Do you have any idea ?
Actually, I'm faking the result, so it's a
workspace: Type.Optional(Type.Any())
.For two models, that could work, but for nested relations, this seems a nightmare :-)
Beta Was this translation helpful? Give feedback.
All reactions