I'm using backbone.js  For example, let's suppose we have a "products" model and a "categories" model which have a many-to-many relationship. In one of my views, say I need to retrieve a list of all categories and know whether...
I have category that can have child categories  And when I'm doing findAll I want to include all of those nested, but I don't know the depth.   var includeCondition = {                           include: [                             {...
I'm pretty new to AngularJS, but I'm pretty unclear on how to tie it up to my Server's REST Api backend.  For example, say I have an "image" resource that I get by GET-ing: myApi/image/1/. This returns a json object with various f...
I want to get query like this with sequelize ORM:   SELECT "A".*,       FROM "A"  LEFT OUTER JOIN "B" ON "A"."bId" = "B"."id" LEFT OUTER JOIN "C" ON "A"."cId" = "C...
I am using SequelizeJS to connect and talk to my database which is on my localhost (MAMP). However, whenever I try to execute a query, I keep getting this error: ECONNREFUSED. I double checked the port number of MySQL and the host name, which are 330...
I would like to know how to add "OR" condition in waterline query. Should look like:  User.find().where({      score: { '>': req.params.score},     status: 'user'     OR     status: 'admin'   }).exec(function(err, d...
ExtJS 4.1.0  Update 6/6/13:   I have posted this same question on the Sencha forums where there hasn't been much action. The post is more or less the same, but I figured I would add it here just for reference. I am still eager to hear other commu...
I just downloaded Waterline from npm. I got some folders, but cant find where can i set the host/user/password etc. to connect my postgress database. I watched all files in the waterline folder and nothing. Can anyone tell me where set it ?...
My application got many Users who can like many Posts (N to N). That's why I assigned the following "belongsToMany" Relations for my Models (Sequelize Doc):  // Post Model models.Post.belongsToMany(models.User, { through: models.PostLikes...
While going through the sequelize docs, more specifically the documentations about associations, I see that the guide casually shows the reader methods such as setTasks(), addTask(), setProject(), that seem to be automatically created by sequelize fo...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.