because if I execute a promise of this type;
const query = await Moralis.Cloud.run("getItemsMinted", { collectionAddress } )
the status of the promise is always pending that I must do in the cloud for it to be processed.
This is the cloud example:
Moralis.Cloud.define("getItemsMinted", async (request) => {
const { collectionAddress } = request.params;
const query = new Parse.Query("ItemsMinted");
query.equalTo("ownerAddress", collectionAddress);
const queryResult = await query.first();
return queryResult;
});