Repository navigation
[v4] Implement documented polymorphic hierarchy support #19321
cdelacombaz
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
The Payload v4 beta documentation describes support for polymorphic hierarchies using the
relationToproperty.However, in
4.0.0-beta.6, therelationToproperty does not exist on theHierarchyConfigtype.Documentation vs. implementation
Documentation:
The documentation includes the following example:
Current implementation:
The type definition does not include
relationToand describes hierarchies as self-referential, meaning documents can only nest under documents from the same collection.Expected behavior
It should be possible to configure polymorphic hierarchies as documented, allowing documents from one collection to have parents from different collections.
Actual behavior
The
relationToproperty is missing fromHierarchyConfig, so the documented configuration is not accepted by TypeScript.Environment
4.0.0-beta.6Question
Is support for polymorphic hierarchies still planned for v4, or is this functionality expected to be available already?
If it is not implemented yet, it would be helpful to clarify its status in the beta documentation.
Thanks!
All reactions