Thursday, 1 February 2018

Have problems with mongoose schema and reference

My brandSchema: http://ift.tt/2E54ilL My categorySchema: http://ift.tt/2FBlDjf problem is. when I run:brandSchema.find({'category._id': (req.query.category)}) .exec((err, result)=>{ if(err){ console.log(err) } else { res.send({result: result}) }
I get empty result array.Can somebody point out my problem?

Submitted February 01, 2018 at 02:33PM by mclovin4009

Problems while deploying to Heroku

Hello there! I've been having some trouble to deploy my Nodejs app on Heroku. I've been using config to set up my database. It seems Heroku isn't finding my "production.json". Have anyone ever had this issue ?Files http://ift.tt/2DSJL0p screenshot http://ift.tt/2Eu3gNY env vars http://ift.tt/2DT03Xa

Submitted February 01, 2018 at 01:32PM by giocruz

My basic understanding of Nodejs

Hey,I'm looking into learning Nodejs (express) as I want to learn new languages. From my understanding it works (simplest terms) by proving a RESTapi? Example, it surfaces the json which can be collected by emberjs reactjs etc?

Submitted February 01, 2018 at 12:21PM by PsychologicalBlood

Better E2E testing

http://ift.tt/2DRhDec

Submitted February 01, 2018 at 01:14PM by krylovanatu

A minimal cryptocurrency CLI implementation in TypeScript & Immutable.js

http://ift.tt/2E43ptB

Submitted February 01, 2018 at 12:55PM by codeindie

ECMAScript is documenting for developers to avoid ASI

http://ift.tt/2D5S9N1

Submitted February 01, 2018 at 09:24AM by fagnerbrack

Introducing Bit's NPM package registry

http://ift.tt/2nuWzTP

Submitted February 01, 2018 at 08:32AM by JoniSar