I created a table in the Moralis mongodb. I’d like to export it. I’m using a Moralis query. However, I only get back object IDs, not the other columns in the table. Please help.
Here’s my code:
const mytable = Moralis.Object.extend("History");
const query = new Moralis.Query(mytable);
const results = await query.find();
for (let i = 0; i < results.length; i++) {
const object = results[i];
console.log(object.get("start")); //Doesn't work
}
Here’s what the results object looks like:
Here’s the same object in the Moralis admin console. Note the extra columns: