How to simply replace this code form the “Rarity Ranking App example” which is in Moralis v1 to a MongoDB query using their free tier.
Code excerpt:
const dbNFTs = Moralis.Object.extend(col);
const query = new Moralis.Query(dbNFTs);
Here the link to the example github: https://github.com/IAmJaysWay/Rarity-Ranking-NFT
Thanks for any support in advance !