Back to directory
GeorgeHulpoi

payload dependency graph

by GeorgeHulpoi
v2
^2.0.2
MIT

From the author

This plugin creates a dependency graph between collections and globals. The graph updates automatically, because the plugin observes the changes made on any collection or globals.

Installation

npm i payload-dependency-graph

14

Stars

0

Forks

1

Open Issues

2 years ago

Last Updated

2

Weekly Downloads

v2.3.0

npm Version

145.7 KB

Unpacked Size

0

Dependencies

GitHub stars

Trends appear after 7 days of data. Daily snapshots have not started yet.

npm weekly downloads

Trends appear after 7 days of data. Daily snapshots have not started yet.

Each point is npm's rolling 7-day download count.

Health Score

0/100Archived

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/698381771-root.svg)](https://payloaddirectory.dev/plugins/698381771-root)
HTML
<a href="https://payloaddirectory.dev/plugins/698381771-root"><img src="https://payloaddirectory.dev/badge/698381771-root.svg" alt="Payload Directory"></a>
Updated Jan 2, 2024Created Sep 29, 2023Published Nov 13, 2023

README

# Payload Dependency Graph Plugin

[![npm version](https://badge.fury.io/js/payload-dependency-graph.svg)](https://badge.fury.io/js/payload-dependency-graph) [![Test](https://github.com/GeorgeHulpoi/payload-dependency-graph/actions/workflows/test.yml/badge.svg)](https://github.com/GeorgeHulpoi/payload-dependency-graph/actions/workflows/test.yml) [![Downloads](http://img.shields.io/npm/dw/payload-dependency-graph.svg)](https://www.npmjs.com/package/payload-dependency-graph)
Full README
# Payload Dependency Graph Plugin

[![npm version](https://badge.fury.io/js/payload-dependency-graph.svg)](https://badge.fury.io/js/payload-dependency-graph) [![Test](https://github.com/GeorgeHulpoi/payload-dependency-graph/actions/workflows/test.yml/badge.svg)](https://github.com/GeorgeHulpoi/payload-dependency-graph/actions/workflows/test.yml) [![Downloads](http://img.shields.io/npm/dw/payload-dependency-graph.svg)](https://www.npmjs.com/package/payload-dependency-graph)

This plugin creates a dependency graph between collections and globals. The graph updates automatically, because the plugin observes the changes made on any collection or globals.

This plugin is created and maintained by [gvhdev.com](https://gvhdev.com).

## Use Cases

The plugin is useful when it comes to cached content or relationship-based changes.

- You're caching a static page that uses nested relationship fields. If the page has fields with blocks, and these blocks are recursive and have their own relationship fields, it can be difficult to know which cache needs to be purged. For this situation, the plugin is perfect for knowing which resource is dependent on whom.
- You're caching the API responses that contain a depth greater than 0. You can purge that cache for that specific resource when its dependencies change.

## [Documentation and API](https://georgehulpoi.github.io/payload-dependency-graph/)

Similar plugins