paint-brush
Enabling Virtuals In Mongoose Lean Mode (in a FeathersJs service)by@melvinkcx2
3,451 reads
3,451 reads

Enabling Virtuals In Mongoose Lean Mode (in a FeathersJs service)

by Melvin Koh2mJanuary 14th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Lean mode in Mongoose is enabled to enhance query performance. Virtuals are attributes derived during query, which the values are not actually persisted in MongoDB. Virtual is one of Mongoose magic attributes, it is disabled by default. Using the plugin mongoose-lean-virtuals, apply virtuals to a Feathers.js service (generated with feathers-cli) In this article, I will be focusing on how to apply the plugin in a typical Feather.js Mongoose service.

Company Mentioned

Mention Thumbnail
featured image - Enabling Virtuals In Mongoose Lean Mode (in a FeathersJs service)
Melvin Koh HackerNoon profile picture
Melvin Koh

Melvin Koh

@melvinkcx2

Software Engineer | Maintainer of fastapi-events

About @melvinkcx2
LEARN MORE ABOUT @MELVINKCX2'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Melvin Koh HackerNoon profile picture
Melvin Koh@melvinkcx2
Software Engineer | Maintainer of fastapi-events

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite