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 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...
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...
I have two sequelize models with one-to-many relationship. Let's call them Owner and Property.  Assume they are defined using the sails-hook-sequelize as such (simplified).  //Owner.js module.exports = { options: {   tableName: 'owner' },...
I am using Sequelize express with Node.js as the backend, some data from my sequelize I need to include to another table but some of these data is null so the whole result I’m getting is null.  question: how can I return some data if data it's...
If you would enable Sequelize logging, you would see that during the "sync" phase and right after creating a table, Sequelize executes SHOW INDEX FROM table query. The question is - why?    To be more specific, here is the code I'm execut...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.