Getting the following error when I try to iterate through DB search results. I am trying to output a Boolean value to let me know if an email address has been captured in my “lead” DB.
Function Error Log:
[
{
“log”: {
“data”: “{"tag":"Error while executing the function","extraInfo":{"message":"Cannot read property ‘records’ of undefined"}}”,
“level”: “error”
}
}
]
AM I referencing the DBObject properly in my Node.JS code? I am storing DB results in dbObject.
Screenshot of Function: