Add option to populate only an array of IDs for relations (and maybe others) #11827
Labels
issue: feature request
Issue suggesting a new feature
source: core:strapi
Source is core/strapi package
Feature request
Please describe your feature request
Summary
At the moment our population logic only allows for you to populate the full data context, what I am suggestion is an option to only populate an array of IDs such like
[1, 2, 3, 4, ...]
Why is it needed?
Useful if you don't need the full data payload in a single request and can make multiple other requests to fetch the additional data (like lazy loading)
Suggested solution(s)
Not sure of the best method we should use to only select IDs instead of fields 🤔 maybe some kind of boolean in a populate object?
Related issue(s)/PR(s)
N/A
The text was updated successfully, but these errors were encountered: