Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to populate only an array of IDs for relations (and maybe others) #11827

Closed
2 tasks
derrickmehaffy opened this issue Dec 6, 2021 · 1 comment
Closed
2 tasks
Labels
issue: feature request Issue suggesting a new feature source: core:strapi Source is core/strapi package

Comments

@derrickmehaffy
Copy link
Member

Feature request

Please describe your feature request

  • I have created my request on the Product Board before I submitted this issue
  • I have looked at all the other requests on the Product Board before I submitted this issue

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

@derrickmehaffy derrickmehaffy added issue: feature request Issue suggesting a new feature source: core:strapi Source is core/strapi package Squad: Developer Experience labels Dec 6, 2021
@derrickmehaffy derrickmehaffy added this to To be reviewed (Open) in Developer Experience - Old via automation Dec 6, 2021
@derrickmehaffy
Copy link
Member Author

Hey all, we are currently moving many feature requests to our new feedback and feature request website to help clean up the GitHub issues and make it easier for us to review bug reports and fix them.

I have moved this feature to the following URL: https://feedback.strapi.io/developer-experience/p/add-option-to-populate-only-an-array-of-ids-for-relations-and-maybe-others
If you are interested in this feature please feel free to go there and add more comments and/or upvote it there.

For now I will close this and lock it so that all new information goes into our new feedback website.
Thanks!

Developer Experience - Old automation moved this from To be reviewed (Open) to Fixed/Shipped May 5, 2022
@derrickmehaffy derrickmehaffy removed this from Fixed/Shipped in Developer Experience - Old May 5, 2022
@strapi strapi locked and limited conversation to collaborators May 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue: feature request Issue suggesting a new feature source: core:strapi Source is core/strapi package
Projects
None yet
Development

No branches or pull requests

1 participant