I'm fairly new to node.js and sails.js but not to javascript I have a simple function that iterates over an array of abjects, validates them, each validated object in the array is pushed into another array with i want to pass onto my my…
I tried out Sails v10 beta and liked associations in Waterline.
However, I would like to try out the Sails framework using the native MongoDB driver sans any ORM. Is there any easy way to do this? Or are Waterline and Sails.js tightly coupled…
I added mongo-watch to my Sails application, in order to detect external changes into the mongo database, following this stackoverflow answer. This worked pretty fine, but now my automated tests fail. Probably because the barrels fixtures do not…
i'm developing an app with sails.js beta and mongodb.
I've two models in a many-to-many association, i can successfully associate and populate instances of these models using .add() and .populate() methods. My problem is now that the .remove()…
Adapter i am using is
adapter: "sails-mongo",
I am trying to query for matches,
example: Assume Values in DB for field (name) are JOHN , John, JohN , john, JOhn martin
If i search with a query for name="john" results should JOHN, John, johN
In the…
I have 2 models called users and books with one to many associations. My schema looks like
1. model user.js
module.exports = {
attributes: {
userName: {
type: 'string'
},
books: {
type: 'ref',
columnType: 'book',
…
When I query from collection in MongoDB and it has results:
[ { details:
[ { owner: '57f52829bcc705bb1c37d611',
nameprd: 'fsfsdaf',
price: 15000000,
descrice: 'sfsdfsdaf',
number: 4,
dateOff:…
How to execute mongo db custom functions from sails.js app? I could not find any suitable way to execute custom functions. I am able to access only collections from the sails app, using the predefined functions provided in the waterline ORM.
enter image description here
CloudError: Endpoint (`observeMySession`) responded with an error (or the request failed).
I need to fix this error this is my browser console error and those come while I;m trying to log in to the new sails project…