michalCapo
michalCapo
This one worked for me ``` let archive = archiver('zip', {zlib: {level: 2}}); const file_name = os.tmpdir() + '/' + U.GUID(20); archive.on('finish', function () { archive.pipe(fs.createWriteStream(file_name)); }); archive.on('end', function ()...
Thanks. I'm also happy with solution shown below. But this is kind of temporary one. ``` yarm.mongoose('posts', post).set('query', -> post.find().populate('tasks owners.owner') ) ```
Hmm. Actually `req.mongoose.doc` is undefined. My dependencies are: ``` "dependencies": { "express": "
A cherry top. It would be very nice to get only requested fields via url and also it could work without populate. ``` GET http://localhost/api/v1/Invoices?populate=customer&select=amount ```
``` typeof user.TYPE ```
``` import { number, object, optional, string } from "superstruct"; const user = object({ id: number(), name: string(), some: optional(string()), }); console.log(user.schema.name.validate(undefined)[0] == null) // false console.log(user.schema.some.validate(undefined)[0] == null) //...