Comments (2)
so this is just some weird mongoose syntax. the select method will select particular properties to include in the returned instance if you don't want to include them all, or as in this case with the minus sign in front of it, exclude those particular properties. because the __v
property is just something mongo adds that serves no purpose to the front end, i excluded it from the return. I haven't done it consistently across the application but I probably will just to tidy up the returns to the front end.
from full-stack-expense-tracker.
Ahhh, got it. I'm tired. I think I was thinking 'sort' and typing 'select'. This makes sense! All clear to me.
from full-stack-expense-tracker.
Related Issues (8)
- Getting 'TypeError: Cannot read property 'info' of undefined' HOT 3
- User Experience: I would probably make 'Notes' an optional field. HOT 1
- Consider returning status codes on successful responses too HOT 2
- Obfuscation Needed! HOT 1
- Double check URL
- Ignore logfile.log HOT 1
- PORT is always required in .env HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from full-stack-expense-tracker.