sails-hook-sequelize-blueprints
sails-hook-sequelize-blueprints copied to clipboard
Sails blueprints for sequelize ORM
TypeError: User.hasOne is not a function My code associations: function () { User .hasOne(Role, {foreignKey: 'id'}); }, where is the mistake ?
I can't seem to get this to work with sails v1.0.0-42. Does this module support that version?
This PR include count functionality to routes. This nus be used passing "count" string after any resource route, for example: GET /users/count Response: It's retreive's paginated object. { "items": [...
To enable individualHooks in sequelize (see [Hooks])(http://docs.sequelizejs.com/manual/tutorial/hooks.html#declaring-hooks), the following Hooks must be added to the initialize - section: ``` sequelize.addHook('beforeBulkCreate',function (instance,options) { options.individualHooks = true; sequelize.addHook('beforeBulkDestroy',function (options) { options.individualHooks =...
i mainly use this hook because it was hard to use waterline with softdelete so what can i do to get the deleted rows while using ``` options: { paranoid:true,...
There's a problem in the way you are parsing the populate option. Sequelize lets you do cool stuff as follows: ``` //A query to be run on MyMainModel include: [...
Hi, thanks for the hook. I'm running `0.3.0`. We're trying to run Sails as a proof of concept, with Sequelize as the ORM. I'm not currently seeing any of the...
Great hook. Pretty much everything worked except for **find where** clause. For instance, I tried to run the following API request and it returned a strage error: ``` http GET...
Is it possible that there is some dead code which gets not executed due to copy&paste from core blueprints hook? For instance: https://github.com/cesardeazevedo/sails-hook-sequelize-blueprints/blob/master/actions/add.js#L111 - Because pubsub has to be disabled...
I have two models: User and Trade and I have these associations: ``` User.hasMany(Trade); Trade.belongsTo(User); ``` I get blueprint error when starting Sails: ``` node_modules/sails-hook-sequelize-blueprints/index.js:338 var alias = foreign.as ||...