bluehost-banner

NodeJs Interview Questions Collection 2

1) What are Virtual Properties in MongoDB?

Ans: Virtual properties are basically fields that we can define on our schema but that will not be persisted, so they will be not saved in a database in order to save some space there.

For example : conversion from miles to kilometers, so if we can easily convert them, no need to store them in both fields in the database.