Join GitHub today
Query $in with more than 21 items throw a MongooseError.CastError #205
Steps to reproduce
Generate this error:
If $in array length > 21 crash, if $in array length <= 21 no problem.
You are most likely using the REST client in which case this is a duplicate of feathersjs-ecosystem/feathers-rest#88.
The issue is a limitation in the querystring module which limits the size of arrays to 20 items. The recommended solution is to implement your own query parser with the