adds code

In this lecture, you are going to learn about virtual properties. Virtual properties are basically the fields which we want in the result but they don't actually exists in the database. For example, let's say we are storing date of birth of the user in the database collection. From that date of birth, we can calculate the age of the user. So, we want age field in the result, but it does not exists in the database collection. Here age is derived from an existing field. Learn about "this" keyword here:
Previous Post Next Post