We help IT Professionals succeed at work.

What is mongoose _doc property?

High Priority
304 Views
Last Modified: 2019-06-03
What is mongoose _doc property?

I'm going through a tutorial and the moderator references it, but I want to dig a little deeper and try to understand what it actually does.

What is it and what does it do? I've not found a clear and concise definition and I've not been able to find it in the docs.
Comment
Watch Question

Software Engineer
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
From: https://mongoosejs.com/docs/2.7.x/docs/migration-1x-2x.html

Private props
Several internal instance props have had name changes so its more obvious that they are not intended for public use. Namely instance.doc has changed to instance._doc since it contains the structure Mongoose relies on to operate properly and should only be manipulated with caution.

Other than that there is not a lot to find on it.
Bruce GustPHP Developer

Author

Commented:
Thanks, noci!