mongoose-datatable
mongoose-datatable copied to clipboard
Server side dataTable request support for mongoose
`Model.dataTables({ limit: input.length, skip: input.start, search: { value: req.body.search.value, fields: ['name'] }, sort: orderBy, formatter: function(table) { let permission_html = ""; _.each(table.permission,function(p){ permission_html = permission_html + ""+ p.name +"" })...
I am using datatable with mongoose. I need to use an aggregate lookup to join another table, but it not returning any data.
Hi there, when i search for path "_id" the type is "ObjectId" but for it doesn't exist a Handler. Is that intentional. I added myself a "objectIdHandler.js", because I want...
Hi, What is the correct way of getting 'image' object below, ``` image: { public_id: String, version: String, alt: String, path: String }, ``` {data: 'image'} gaves error. returned json...
I have been using mongoose-datatable for a long time without any problems (great plugin, thanks!). However, today I added a __ttl (document expiration) by using the [mongoose-ttl plugin](https://github.com/aheckmann/mongoose-ttl). I use...
==============================Controller============================== router.get('/matchdata',function(req, res){ Match.dataTable(req.query,{conditions: {status: 1}}, function (err, tdata) { var dataRow = ''; var ndata=[]; tdata.data.forEach(function(value,index){ console.log("value is " + value +' '+ "index is" +index); if (!value.date) {...
Hi, I have updated to mongoose 5 and no results are returned when I use the options.conditions parameter Tests made with mongoose 4.13.12 with options.conditions ``` { draw: '7', recordsTotal:...
My question about retrieve data by two collections with declare type and ref into schema. example my schema: ``` javascript var controlunitSchema = new mongoose.Schema({ osver: String, sensors: [{ mac:...
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) to 4.17.1 and updates ancestor dependency [mongoose](https://github.com/Automattic/mongoose). These dependencies need to be updated together. Updates `mongodb` from 4.16.0 to 4.17.1 Release notes Sourced from mongodb's releases. v4.17.1 4.17.1...