Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#946·node

GET /works: omit id-less works

Author: lautarodraganCreated Jul 2, 2019Updated Jul 2, 2019
Labelsbug

https://github.com/poetapp/node/blob/b07b875e2cd6aa1474f5ae99e1b0a2feed4839a2/src/API/WorkController.ts#L59-L70

Update .find(filters, { projection: { _id: false } }) to something like

.find({ ...filters, id: { $exists: true } }, { projection: { _id: false } })

Source: poetapp/node

View original on GitHubView discussion on GitHub