---
title: "Discussion on \"When Mongoose Virtuals Disappear: Understanding the Lean() Tradeoff\" | Hashnode"
description: "Discussion on \"When Mongoose Virtuals Disappear: Understanding the Lean() Tradeoff\". Mongoose virtuals missing in queries? Learn how lean() removes virtuals and the correct fix using lean({ virtuals: true })."
url: "https://hashnode.com/posts/when-mongoose-virtuals-disappear-understanding-the-lean-tradeoff/6996e56eb24d5f4dec6df74a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [When Mongoose Virtuals Disappear: Understanding the Lean() Tradeoff](https://mongo-virtuals-disappear-bug.hashnode.dev/when-mongoose-virtuals-disappear-understanding-the-lean-tradeoff?utm_source=hashnode&utm_medium=feed)

Mongoose virtuals missing in queries? Learn how lean() removes virtuals and the correct fix using lean({ virtuals: true }).

Feb 19 · 4 min read · mongo-virtuals-disappear-bug.hashnode.dev  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#mongoose](https://hashnode.com/tag/mongoose)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#express](https://hashnode.com/tag/express)
-   [#expressjs-cilb5apda0066e053g7td7q24](https://hashnode.com/tag/expressjs-cilb5apda0066e053g7td7q24)
-   [#backend-developments](https://hashnode.com/tag/backend-developments)
-   [#crud](https://hashnode.com/tag/crud)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Abinash Dash](https://hashnode.com/@abidev2003)

@abidev2003

  
[View profile](https://hashnode.com/@abidev2003)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
