# Media ist leer / Feld ist leer

**URL:** <https://forum.shopware.com/t/media-ist-leer-feld-ist-leer/86581>\
**Category:** Shopware 6 (German)\
**Created:** [30. März 2021 um 15:27 UTC](https://forum.shopware.com/t/media-ist-leer-feld-ist-leer/86581 "2021-03-30T15:27:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lecksauser](https://avatars.discourse-cdn.com/v4/letter/l/ccd318/32.png) [@lecksauser](https://forum.shopware.com/u/lecksauser)\
**Post date:** [30. März 2021 um 15:27 UTC](https://forum.shopware.com/t/media-ist-leer-feld-ist-leer/86581/1 "2021-03-30T15:27:53Z")

</div>

Hallo Leute,

ich brauche eure Hilfe!

Wie kann ich abfragen: Gebt mir alle Produkte zurück, bei denen das Feld „media“ leer ist:

Besten Dank!

Die Abfrage:

{  
„total-count-mode“: 1,  
„filter“: [  
{  
„type“: „equals“,  
„field“: „coverId“,  
„value“: null  
},  
{  
„type“: „equals“,  
„field“: „id“,  
„value“: „00041881fd884b7b9291312fb184ad7a“  
}  
],  
„limit“: 10,  
„includes“: {  
„product“: [  
„id“,  
„name“,  
„media“,  
„coverId“  
],  
„media“: [  
„id“,  
„url“  
],  
„product\_media“: [  
„media“  
]  
}  
}

Rückgabe:

„data“: [  
{  
„id“: „00041881fd884b7b9291312fb184ad7a“,  
„type“: „product“,  
„attributes“: {  
„coverId“: null,  
„name“: „F16884/3“,  
„apiAlias“: null  
},  
„links“: {  
„self“: „[https://XXXXXXXXXXXXXXX](https://XXXXXXXXXXXXXXX)“  
},  
„relationships“: {  
„media“: {  
„data“: ,  
„links“: {  
„related“: „[https://XXXXXXXXXXXXXXX](https://XXXXXXXXXXXXXXX)“  
}  
}  
},  
„meta“: null  
}  
],
