-
I have the following 2 models defined:
``` javascript
'user strict';
module.exports = {
identity: 'user',
connection: 'dbCSQA',
tableName: 'User',
migrate: 'safe',
autoPK: false,
autoCre…
-
Similar issue found here for sails-mongo:
https://github.com/balderdashy/sails/issues/2086 and was fixed in sails-msql
error: Must specify an `id` when calling `Model.room(id)`
-
I am using couchdb adapter with sails js. Updating model's with primary key set as string gives the following error.
.findOne() requires a criteria
The problem I saw was the Model.update function do…
tmjam updated
8 years ago
-
I have defined the following routes for an entity:
``` javascript
{
method: 'GET',
path: `${process.env.ENDPOINT_PREFIX_API_CSQA}/brands`,
config: {
handler: {
bedwetter: …
-
I have entities `events` and `eventlinks`. An `event` can have multiple `eventlinks`. And, `eventlinks` are tied to `linktypes`. `populate: true` is set on all `GET` routes.
Defined in the models as:…
-
Hi,
I am new to hapijs and hnax.js boilerplate. I have configured the hanx.js on my system. Pages are visible in browser, but when i hit signup button by filling the details, it gives me error as "can…
-
Sails version v0.11.0
I´m having this strange issue when trying to POST to my Sails API from browser. It seems that it´s always POSTing null values. When using GET (shortcut) to create the same objec…
busla updated
8 years ago
-
model with autoPK: false has no effect. sails-cbes overwrites populated id/primary key
-
I've a model 'Order.js' file in models
```
module.exports = {
autoPK : true,
autoCreatedAt: true,
autoUpdatedAt: true,
attributes : {
purchaseDate: {
type: 'datetime'
}
}…
-
**Sails version**:0.11.0
**Node version**:4.2.1
**NPM version**:2.14.7
**Operating system**:Ubuntu 14.04
In my model, I have following class properties:
``` javascript
schema: false,
autoPK: f…