I have a collection in which I need to make queries filtering by date, so Iād like to add an index to the createdAt field (this field was created automatically when I created the collection in Strapi Content-types builder).
I already added some indexes for other fields that are working fine in /models/{name}.settings.json according to: https://forum.strapi.io/t/best-approaching-for-adding-custom-indexes/888/7
but there is no createdAt attribute in the /models/{name}.settings.json file
I've tried adding the index manually in mongo but as in the original question from the Strapi forum post Strapi drops it when reloads.