
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
strapi-v5-plugin-populate-deep
Advanced tools
This plugin is a fork of the original strapi-plugin-populate-deep, which does not support Strapi v5 at the time of this publication.
With Strapi v5, a new API structure validation feature was introduced, which makes the populate parameter incompatible with how the original plugin works. This plugin addresses that by introducing a new parameter pLevel to avoid validation issues.
npm install strapi-v5-plugin-populate-deep
yarn add strapi-v5-plugin-populate-deep
Also, the npm link is here.
The plugin allows you to deeply populate data in your Strapi queries with a new parameter pLevel. This parameter specifies the depth of population for your API responses.
Populate a request with the default max depth.
/api/articles?pLevel
Populate a request with the a custom depth
/api/articles?pLevel=10
You can configure the default depth globally through the plugin configuration.
To customize the default depth, add or modify the config/plugins.js file as shown below:
config/plugins.js
module.exports = ({ env }) => ({
'strapi-v5-plugin-populate-deep': {
config: {
defaultDepth: 3, // Default is 5
}
},
});
This configuration will set the default depth to 3 levels across all API requests unless specified otherwise in the request itself.
This plugin is a fork of the original work by Barelydead and can be found in the original repository.
The original idea for getting the populate structure was created by tomnovotny7 and can be found in this github thread
Thank you to tooonuch for fixing the dynamic zone population issue. He resolved a problem where components with the same attribute name were not populated correctly by using the on
property. This improvement helps ensure proper population for all components.
We appreciate and acknowledge all contributions made by the open-source community to the original project.
FAQs
Strapi v5 plugin that populates nested content.
We found that strapi-v5-plugin-populate-deep demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.