[SOLVED] Returns undefined user retrieval

Hi! I just started learning and this might be a really simple problem but I’m working on this code right now in cloud function:

const thisUser = new Moralis.Query(“User”).equalTo(“email”,request.params.verEmail).find({useMasterKey: true});

but in the logs it says undefined.

try to look in documentation on how to make the query.

I don’t know what you expect from that single line of code to do, it has no await for example

also try logger.info(JSON.stringify(variable_name)) syntax in general when you want to log a variable

1 Like

I really was missing an await. thank you!

1 Like