Difference in Query generation?

Is there a difference in using

const collection = Moralis.Object.extend(“someCollection”)
const query = new Moralis.Query(collection)

or

const query = new Moralis.Query("SomeCollection)

?

There is no difference w.r.t query output. Both do the same job.

Not sure if there is any other difference.

Thanks, does it play any role in terms of editing the fetched objects? Like In the docs they use .set("","") but when I dont exten Moralis.Object for queries, is it still possible that way or do I have to update the objects then with just object.property = “”?

Yes. you can edit the existing object data with .set. You can fiter rows based on row ID and edit columns accordingly.

And Object. extend can be used to add a new row to the class.