Moralis.Cloud.define("getUserItems", async (request) => {
const query = new Moralis.Query("EthNFTTransfers");\
query.equalTo("contract_type", "ERC721");
query.containedIn("owner_of", request.user.attributes.accounts);
const queryResults = await query.find();
const result [];
let sum = 0;
for (let i = 0; i < queryResults.length; ++i) {
result.push({
"id": queryResults[i].attributes.objectId,
"tokenid": queryResults[i].attributes.token_id,
"tokenaddress": queryResults[i].attributes.token_address,
"symbol": queryResults[i].attributes.symbol,
"tokenuri": queryResults[i].attributes.token_uri,
});
}
return results;
});
get error want i want so save at cloud