Skip to content
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

@etsuo

Description

@etsuo

For example, if you have SomeModel and it has a property address:Address = new Address(), and you do the following:

SomeModel.getById(...)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions