sails-mongo Questions
3
Solved
I get this error: a hook ('orm') failed to load when trying to lift a sails app using mongoDB. This my connections.js file:
module.exports.connections = {
mongodb: {
adapter : 'sails-mongo',
ho...
Hyaloid asked 17/8, 2014 at 10:41
2
Solved
I was using sailsjs 0.12. It supported index attributes on models, also
i was using npm package Sails-hooks-mongoat to create inverse indexes and so.
It wasn't ideal, but it worked. Right now the...
Shih asked 15/5, 2018 at 22:5
2
After upgrading to sails v1 all the requests in the controllers became case sensitive.
Although this is expected, commented here: https://sailsjs.com/documentation/concepts/models-and-orm/models#?...
Charbonneau asked 16/4, 2018 at 4:55
4
I am new to sails js.
I want to implement push notifications for both android and IOS in sails js .
I am using Sails js with mongodb.
can anyone help me with regarding configuration or which plug...
Coiffure asked 17/7, 2015 at 5:23
4
Solved
I am using Waterline ORM for sails.js. limit and sort are not working when you use groupby, but are working fine when you dont do any grouping .
For example
Model.find({
groupBy:['term'],
sum:[...
Winnifredwinning asked 2/7, 2014 at 19:27
3
Solved
i just created a MongoDB Atlas account.
I'm using sails with waterline sails-mongo adapter
but I can't manage to connect via my app.
Everything is up to date.
I can connect to any other DB (loc...
Bellina asked 10/3, 2017 at 11:5
1
I am using SailsJS on a project and I need to use native() for certain querys. The problem I have is that I can't find a proper way to instantiate a Waterline Model Object from the mongo collection...
Terbia asked 14/10, 2015 at 10:54
1
Solved
Looking to query against the date only anyone encountered this?
Sample code:
////MODEL
module.exports = {
attributes: {
date: {
type: 'date',
required: true
}
}
};
////CONTROLLER
var...
Hudibrastic asked 18/8, 2015 at 17:7
4
I am new to sailsjs and currently working on project that uses sailsjs. I want to change the default database to mongodb. I did it in config/local.js like following
connections: {
'defaults': 'mo...
Kreindler asked 22/2, 2015 at 13:24
1
Solved
I am new to Sails and Mongo Db. Currently I am trying to implement a CRUD Function using Sails where I want to save user details in Mongo db.In the model I have the following attributes
"id":{
ty...
Germanic asked 22/6, 2015 at 7:56
1
Solved
I'm pretty new on Nodejs and sails.
I'm implementing a server which is similiar to Twitter. In user model, there should be 2 fields: follower and following, and the 2 fields are association of the ...
Bowl asked 2/5, 2015 at 3:5
2
Solved
A very simple question but I am unable to find the answer to it.
So in my Sails app I have a User model and I am trying to make a boolean field with a default value to be False.
Is there a way to ...
Superlative asked 3/5, 2014 at 11:29
1
Solved
The issue I have is related to the following quote from the official documentation:
Note If any connection to an adapter is used by a model, then all connections to that adapter will be loaded o...
Cum asked 21/1, 2015 at 14:31
1
Solved
Is there a way to perform a bulk insert via sails-mongo. So if I pass an array of documents to the model's create method, it will insert each document within that array atomically into the database...
Trimetric asked 1/7, 2014 at 10:32
1
Solved
Is it possible to use models defined within [app-name]/api/models outside api folder?
I have created separate folder in application root, where I placed cron job that should fill my database ever...
Giorgi asked 9/6, 2014 at 15:3
1
© 2022 - 2024 — McMap. All rights reserved.