Questions tagged [sails-mongo]

MongoDB adapter for Sails.js

Sails-mongo allows connecting to from using the ORM api.

400 questions
0
votes
0 answers

Node js(sails.js) for loop sending data to view before loop is completed

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…
user434885
  • 1,988
  • 6
  • 29
  • 51
0
votes
1 answer

Can SailsJS use existing mongo data with string _id fields?

Can SailsJS mongo adapter (sails-mongo) use existing mongo data (not created via SailsJS) with string _id fields (as opposed to ObjectIds)?
Dinana
  • 300
  • 3
  • 14
0
votes
1 answer

How can I use Sails.js without Waterline?

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…
amarprabhu
  • 350
  • 3
  • 10
0
votes
1 answer

How to run Sails tests when a mongo oplog is watched?

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…
danza
  • 11,511
  • 8
  • 40
  • 47
0
votes
1 answer

Sails.js 0.10.0-rc5 many-to-many association: remove

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()…
Massimo Guidi
  • 150
  • 1
  • 1
  • 8
-1
votes
1 answer

Need solution to search case insensitive fields, REACT, sailis , mongodb

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…
-1
votes
1 answer

nodejs, sails: creating 2 records of different model at same time

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', …
krishna m
  • 73
  • 1
  • 7
-1
votes
1 answer

Get value from results which be query from collection in MongoDB

When I query from collection in MongoDB and it has results: [ { details: [ { owner: '57f52829bcc705bb1c37d611', nameprd: 'fsfsdaf', price: 15000000, descrice: 'sfsdfsdaf', number: 4, dateOff:…
-1
votes
1 answer

Access MongoDb Functions from sails.js

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.
-2
votes
1 answer

Every time i create new sails project and try to log in this error will come help me with this plz

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…
1 2 3
26
27