node.js - query using column from junction table -



node.js - query using column from junction table -

i have node entity many many relationship through edge

var node = db.define('nodes', { 'name': sequelize.string }); var border = db.define('edges', { 'weight': sequelize.string }); node.hasmany(node, { as: 'parents', foreignkey: 'parent_id', through: edge}); node.hasmany(node, { as: 'children', foreignkey: 'child_id', through: edge});

i want nodes children created after specific time using query following

node.getchildren({ include: [edge], where: ['createdat > ?', 1413000965754] }).complete(function(err, children){ // ... });

but cant work.

node.js sequelize.js

Comments

Popular posts from this blog

php - How to pass multiple values from url -

database - php search bar when I press submit with nothing in the search bar it shows all the data -

ios - How to load .png images from Documents folder of an app -