This repository was archived by the owner on Dec 27, 2024. It is now read-only.
This repository was archived by the owner on Dec 27, 2024. It is now read-only.
SomeModel.getById with projection doesn't assign default value if db doc doesn't have projected field #94
For example, if you have
SomeModeland it has a propertyaddress:Address = new Address(), and you do the following:If the document does not have the address field, the resulting object will return an object missing that field rather than returning an object with the default value of that field.