As I was following the tutorial, I came to the realisation that the get history function does not render more than 100 messages per group, even though there are more messages stored in the database. Is there some kinda limit per API call? is there another way to fetch all the messages?
async function getHistory(){
const Message = Moralis.Object.extend("Message");
const query = new Moralis.Query(Message);
query.equalTo("group",chatId)
const results = await query.find();
console.log(results)