Greetings,
Since _createdDate is a default field that is created for every item, there is no need to run a query on that specific field, for example we can do:
wixData.query("videoGallery") //Your collection name here
.count() // Counts how many items in collection
.then((results)=> {
console.log(results); //2
})
.count() documentation - https://www.wix.com/code/reference/wix-data.WixDataQuery.html#count
Hope this helps,
if you have any more questions please ask! ![]()