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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix image populate #2693
Fix image populate #2693
Conversation
} | ||
|
||
// Images are not displayed in populated data. | ||
// We automaticaly populate morph relations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We automatically
with two 'l'
LGTM 馃憤 |
Hey @lauriejim |
It's because it's actually not published on npm. |
@lauriejim Unfortunately this didn't solve any existing issues with relations and images. Will this only apply to newly created contentTypes? |
What is the request you did ? |
It didn't solve my issue. I still can't get images on relations |
+1, it didn't solve. strapi version is 3.0.0-alpha.25 |
I'm seeing the same issues with 3.0.0-alpha.25.2 I have a content type (Company) with a media content field (logo), the files are being uploaded correctly - but the API is not returning the association, just "null". I've tried suggestions from #1783, but no luck. Happy to anyone else looking into this. |
@alexandrebodin I'm almost sure the work you're doing in the GraphQL plugin and relations will fix this issue... can you confirm? |
@Aurelsicoko Need to be tested but I think so |
i am facing this too. Not working in nested relation populations. |
This issue still today 2021? |
I'm having this issue too :( any updates? |
How is there no universal solution to that? It's been 3 yrs and no one posted a proper fix yet? I'm kind of in the same situation, my project is complete yet in production, the media uploads don't persist and the response from strapi api doesn't return relational media.
Anyone has a fix? |
Another year and the same issue here. |
okay, here is the solution: Install deep populate plugin use /Authors?populate=deep instead of /Authors?populate=* |
My PR is a:
Main update on the:
Manual testing done on the following databases:
Description:
When you receive populated data, morph relations are omit and it's not good for media (images)
So now we auto populate morph relations. You will receive images.