Mongoose virtual properties: computed fields that don't persist
Mongoose virtual properties compute read-only fields on-the-fly keep MongoDB documents lean and appear in JSON API responses when the toJSON option is enabled. This guide covers definition version notes and verification.