Protected & Hidden Fields

Learn about default protected and hidden fields and how to customize them.

Protected Fields

By default, the following fields are protected from updates:

  • id
  • createdAt
  • created_at
  • updatedAt
  • updated_at

You can customize updatable fields in your schema by modifying the modelMapper.ts utility.

Hidden Fields

By default, the following fields are hidden from API responses for security:

  • password
  • secret
  • token

You can customize hidden fields by modifying the modelMapper.ts utility.