node-orm2 icon indicating copy to clipboard operation
node-orm2 copied to clipboard

Object Relational Mapping

Results 102 node-orm2 issues
Sort by recently updated
recently updated
newest added

`autoFetch` is a really cool feature. But it can prove to be unpractical when returning far too much data, that is actually not needed. Imagine having users and messages grouped...

enhancement

Is it possible to set uuid's as primary key for mysql models? I can't find any information about this on the wiki but I guess it must be possible?

Hi. i broke my head. I have this: `this.req.models.Tour.findByInfo({ Charter: this.req.query.Charter, }, { autoFetch: false }).where("Active = 1",(err, tours) => { this.res.end(JSON.stringify(tours)) })` This is what I get. At the...

Hi, sorry but I'm somehow confused on how to exactly do query condition for IF and IS NULL I have this particular SQL query but not sure how to convert...

How can I group my results by month? I want to get sum of orders in all months of the year. I tried using **_.groupBy("MONTH(`createdAt`)")_** but it returns "undefined"

Issue #284 New function : ``` db.driver.createPool(cb) --> return connectionId; db.driver.releasePool(connectionId); ``` Updated function : ``` Model.create(data, connectionId, cb) Instance.useConnection(connectionId).chainFunction() ```

needs feedback

I'm trying to validate the input data but when I do console.log(err) I'm receiving 'null' Code: ``` var cluster = db.define('cluster', { name : String, }, { validations: { name:...

Version: ``` package: "dependencies": { "bluebird": "^3.5.1", "mysql": "^2.15.0", "orm": "^4.0.2", "orm-transaction": "0.0.2", "request": "^2.83.0", "validator": "^8.2.0" } node -v: v6.10.2 db driver: ORM.connectAsync({ host: obj.host, user: obj.user, password: obj.password,...

Trying to insert item with redshift fails because of variable name error. redshift.js (line 27) if (keyNames.length == 1) { should be: if (keyProperties.length == 1) {

I've been getting the following error when using `findByAssociation`: ``` Error: ER_BAD_FIELD_ERROR: Unknown column 't1._id' in 'on clause' ``` The main reason is that I have `orm.settings.set('properties.primary_key', '_id');` while in...