We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f087e8f commit abc87b2Copy full SHA for abc87b2
lib/document.js
@@ -3839,13 +3839,6 @@ Document.prototype.$toObject = function(options, json) {
3839
_seen: (options && options._seen) || new Map()
3840
});
3841
3842
- if (utils.hasUserDefinedProperty(options, 'getters')) {
3843
- cloneOptions.getters = options.getters;
3844
- }
3845
- if (utils.hasUserDefinedProperty(options, 'virtuals')) {
3846
- cloneOptions.virtuals = options.virtuals;
3847
3848
-
3849
const depopulate = options.depopulate ||
3850
(options._parentOptions && options._parentOptions.depopulate || false);
3851
// _isNested will only be true if this is not the top level document, we
0 commit comments