Having an issue filtering a collection because not all fields are returned when querying the collection.
import wixData from "wix-data";
function filter(category) {
$w('#postsDataset').setFilter(wixData.filter().contains('categories', category))
}
The 'categories' field exists in the collection but doesn't seem to be returned when querying and I don't understand why
![](https://static.wixstatic.com/media/a27d24_a3642ae689bb43098c8a55d37cc0e055~mv2.png/v1/fill/w_897,h_411,al_c,q_90,enc_auto/a27d24_a3642ae689bb43098c8a55d37cc0e055~mv2.png)
![](https://static.wixstatic.com/media/a27d24_d41cc04de3ab497eac2bc1f60c473f05~mv2.png/v1/fill/w_412,h_503,al_c,q_85,enc_auto/a27d24_d41cc04de3ab497eac2bc1f60c473f05~mv2.png)
Sample of first item in database returned when using wixData.query
:"{\"excerpt\":\"Start by trying to move just the tip of your pointer finger\",\"_id\":\"4e16ec51-d00a-4925-af81-ce8028525f48\",\"_owner\":\"45085031-cb3a-4f5e-b5f3-9bcfac3a4f3f\",\"_createdDate\":\"2020-09-20T20:27:17.765Z\",\"_updatedDate\":\"2020-09-21T03:59:30.277Z\",\"plainContent\":
Umm could we ask for further help ... sample code may be !?
Follow this thread, you can get some hints. Keep in mind the limitations of the length. (its a bit headache)
https://www.wix.com/corvid/forum/community-discussion/queryreferenced-result-limited-to-50?origin=member_comments_page
The multi-referenced fields are not called when queying an item, for that you have to do a second query of query-reference