Relationship Enhancer
Enhances relationships in Payload CMS with referential integrity and bi-directional support.
Installation
pnpm add payload-relationship-enhancer About
The Relationship Enhancer plugin for Payload CMS addresses relationship management by ensuring referential integrity and enabling bi-directional relationships between documents. If a document A references document B and B is deleted, document A will automatically updated to remove its reference, maintaining clean data. This plugin allows a bi-directional setup, meaning if document A references document B, document B can also reference document A. The plugin integrates with the existing Payload relationships by modifying the GraphQL and REST API schemas, reducing the need for complex queries to manage these relationships. The plugin currently only supports MongoDB. It does not trigger lifecycle hooks when relationships are updated, which may impact user-defined business logic. Care should be taken when configuring relationships, particularly with nested fields, as the plugin has known limitations regarding their handling.
Package info
- Package name
payload-relationship-enhancer- Latest version
0.0.10- Unpacked size
- 542 kB
- License
- MIT
- Weekly downloads
- 1.2k
- Last publish
- Jan 2, 2024
Similar plugins
More in ContentKanban Board
A kanban board plugin for managing tasks in Payload CMS.
versioning
This plugin enables easy versioning for Payload collections.
Shiki Code
Integrates Shiki syntax highlighting for code blocks in Payload CMS.
Callouts
Create styled callout blocks with customizable themes for Payload CMS.
Tree list view
This plugin adds a collapsible tree list view to Payload CMS.
Export Collections
This plugin allows exporting collections data to CSV or JSON formats.