I am simply trying to query a user with a certain eth address. How can I do this? Here is my code in a cloud function that I am running on the frontend to get the user:
Moralis.Cloud.define(‘getUserWithAddress’, async (request) => {
const query = new Moralis.Query(‘User’)
query.equalTo(‘ethAddress’, request.params.address)
const result = await query.find({ useMasterKey: true })
return result
})
Running getUserWithAddress gets me an undefined response