You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to call query.lean() before execution to save resources. It's the same result as .toJSON, but it makes the query just return the JSON so there's no converting necessary. If we need the Mongoose model objects, we can convert later.
The text was updated successfully, but these errors were encountered:
We need to call query.lean() before execution to save resources. It's the same result as .toJSON, but it makes the query just return the JSON so there's no converting necessary. If we need the Mongoose model objects, we can convert later.
The text was updated successfully, but these errors were encountered: