Typescript error when mapping optional field of an object
I’m using mongodb and planning to have a generic util function that maps the _id
field to id
.
I’m using mongodb and planning to have a generic util function that maps the _id
field to id
.