Thank you for the response.
Third paragraph above is causing me issue.
let dataObj = wixWindow.lightbox.getContext();
wixData.query(“player”)
.eq(“child_id”, dataObj.child_id)
.find()
.then( (results) => {
if (results.items.length > 0) {
I first ready children collection to get child_id, use this child_id to call the lightbox. then I read player collection to get team_id, with the team_id I can query Games collection to get the schedule. The above code is returning noting back, goes to an else if it doesn’t return anything.
player collection has: child_id = Wwhat-email@gmail.com, I’m passing Wwhat-email@gmail.com with dataOjb.child_id but get zero results. I need help with this. Once I get this this then I will use the team_id to call Games collections.