eherve / mongoose-datatable

Server side dataTable request support for mongoose
MIT License
42 stars 28 forks source link

Don't throw Error if select is empty #42

Closed yanisIk closed 8 years ago

yanisIk commented 9 years ago

searchCritera.select is automatically empty after its creation, so the error will always be thrown in this case and the request will never work.

eherve commented 8 years ago

It should not be empty because it is mandatory to specify fields to fetch. There is no "fetch all" implemented

Maybe in a future version but it will require to check allowed fetched fields.