find doesn't work if ids are numerical
fridaystreet opened this issue · 0 comments
fridaystreet commented
.find('users', 1) doesn't return anything. You need to parse the number in as a string
.find('users', '1')
The find function doesn't have support for numerical ids. Possible to just change line 503
} else if (Object.prototype.toString.call(query) === '[object String]') {
to
} else if (Object.prototype.toString.call(query) === '[object String]' || Object.prototype.toString.call(query) === '[object Number]') {
Cheers
Paul
ps nice little library, lots of potential.