Hi,
I’m trying to get the value of a boolean from my dataset (true or false) but it is always returning as undefined.
I’m using the following code and it returns ‘firstName’ but not ‘approved’ (the boolean field)
Do I need to do something different as it is a boolean?
wixData.query("MembersOnly")
.find()
.then((results) => {
let item = results.items[0]
let valueFirstName = item['firstName']
let valueApproved = item['approved']
console.log(valueFirstName, valueApproved)
})
Thanks,
Rachel