I understand that there is no built-in way in Sails.js/Waterline of populating deep nested associations yet, so I am trying to use bluebird promises to accomplish that but I'm running into a problem. I'm successfully retrieving the user, and...
I'm having issues with Sails.JS 0.9.8. I would like to use promises with the Model.query() function (I use sails-mysql adapter). This code will work : User.findOne({ email: email }) .then(function(user) { console.log(user); }); but this on...
Continuation of this bug : API Versioning in SailsJS Sails Permissions AuditPolicy is not working properly. can any one guide me to do. O/P: error: Sending 500 ("Server Error") response: Error: Invalid route option, "model"....
I'd like to add a default toDisplay function to all models which will use metadata, not unlike attribute/association definitions, to perform manipulations on the instance's attributes/associations making them suitable for display in the UI....
I'm using mongodb with sails.js querying a model that contains the titles of torrent files. But I'm not able to perform a waterline query using the "AND" condition. I've already tried it in several ways but most of them return emp...
It seems like Sailsjs/Waterline does not currently support a POINT type or geospatial indexing with JSON. Are there any ways to customize a schema for certain adapters to support geospatial datatypes? If not, is there a way to integrate a second O...
I have Video model: module.exports = { attributes: { id: 'string', tags: 'array' }, } I want to find all videos with tags for example "Hello" or "World". I could easy get all videos like: Video.find({ta...
I am using waterline v0.13.5 package with expressjs. I get an user error { userError: The attribute 'str' on the 'action' model contains invalid properties. The property 'minLength' isn't a recognized property. when tryi...
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...
I just downloaded Waterline from npm. I got some folders, but cant find where can i set the host/user/password etc. to connect my postgress database. I watched all files in the waterline folder and nothing. Can anyone tell me where set it ?...
©2020 All rights reserved.