Releases: Mattchewone/feathers-shallow-populate
Releases · Mattchewone/feathers-shallow-populate
🐜 Fix single relations when `keyHere` is `null`
For details, see pull request #22
🎁 Customize the params object
Thanks to work by @fratzinger, you can now more easily utilize the params object to customize queries.
🎁 Support numeric keys
Thanks to some work by @Bomberus and @fratzinger, support for databases using numeric keys (most common for SQL databases) has been added.
Support nested keys, drop node 6
Nested keys support
Now supporting nested keys
const { shallowPopulate } = require('feathers-shallow-populate')
const populateTasks = shallowPopulate({
include: [{
service: 'tasks',
nameAs: 'tasks',
keyHere: '_id',
keyThere: 'taskSet.taskSetId', // Yeah, baby!
asArray: true
}]
})
Support node 8+
The breaking change in this release is that node 6 is no longer supported.