Unable to retrieve data from database

Hello everyone, so I am relatively new to Wix Code and I want to create a dynamic gallery that retrieves its content from the database based on the image category. The gallery will be put on a Lightbox, but for some reason it seems that my code fails to retrieve data from the database and I can’t figure out what exactly went wrong.

This is the code that passes the category (projectName) to the Lightbox based on what button I click and opens the Lightbox.


This is the problematic code, it successfully retrieve the category from the session but seems to fail to retrieve the data from the database.


The result of the code above:


The database from it supposed to get data from, I’ve already set permission so that it can be read by everyone


I really appreciate any comments or suggestion for this problem, thanks

Hi,
I guess this is the problem .eq(‘ProjectName’, value), check the name of the field key in the database.
Roi.