Running the example gives the following type error:
Property 'id' does not exist on type 'LeanDocument<{ name?: string; } & { _id: ObjectId; }>'.
I think that it is related to this: Automattic/mongoose#11761
Don't know if this can be solved in the plugin level.
Running the example gives the following type error:
Property 'id' does not exist on type 'LeanDocument<{ name?: string; } & { _id: ObjectId; }>'.I think that it is related to this: Automattic/mongoose#11761
Don't know if this can be solved in the plugin level.