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
- 248
- Last publish
- Jan 2, 2024
More from iamacup
View profileResolve alias webpack helper
Payload plugin that injects webpack resolve aliases to stub out server-only modules in the admin bundle.
OpenAPI
Generates OpenAPI specifications from Payload CMS configurations.
GraphQL View
Adds a GraphQL view with IDE support to Payload collections and globals.
Query
Type-safe query filters and field selection for Payload, with a REST select parameter plugin.
create api docs
Generate OpenAPI 3 documentation for Payload CMS.
Swagger
Swagger plugin for Payload CMS that generates OpenAPI documentation.
Similar plugins
More in ContentShaggle Core
Adds ready-made collections, globals, and layout blocks for agency and hospitality sites to a Payload CMS config.
Meilisearch
Syncs Payload CMS collection documents to a Meilisearch index via afterChange and afterDelete hooks.
Nested Docs
Adds parent-child document hierarchies with auto-generated breadcrumbs to Payload collections.
Redirects
Manage redirects directly within the Payload CMS admin panel.
Media Preview
Preview images, videos, audio, and documents directly in the Payload CMS admin panel.
Iframe Tabs
Add iframes into separate tabs in the Payload admin panel.