Console log your strapi.models.post._attributes to see what fields are there.
The function simply keeps only these attributes.
Console log your strapi.models.post._attributes to see what fields are there.
The function simply keeps only these attributes.