I'm looking into what is the correct way to pass multiple values for the same parameter name in a GET request in sails, but dont know how to achieve this.
I have seen url like this
http://url/action?id=a&id=b
http://url/action?id=x,y,z
So, can…
Hi i removed waterline ORM from Sails JS and added mongoose, for that i followed the steps specified in the following link
http://laurentschaffner.com/blog/from-waterline-to-mongoose-in-sails/
But now am facing issues in installing sails-auth…
I'm trying to get a subset of underlying mongodb collection that fits in particular datetime range. So here is a code:
io.socket.get('/myResource', {
sort: 'myDatetimeField',
where: {
myDatetimeField: {
'>':…
I tried to create a user & pet model in Many to Many relationship using mongoDB and sailsJS, db creation and loading the data's are just fine i checked in mongoDB for dbs and collection it exists. when i try to get the user list and pet list its…
I have collection entry like that
[
{
shape : [{id:1,status:true},{id:2,status:false}]
},
{
shape : [{id:1,status:true}]
}
]
I want to fetch data which exactly match array , means contain all ele. of array.
Ex. where shape.id = [1,2]…
It's possible to have a mysql connect for each registered and authenticated client ?
For example:
I need to have a different database for each client and I wonder if you can do this with the sailsjs.
I've an application with sails.js and mongodb.
The sails rest api works fine for create. It also works fine when I access it as "http://localhost:1337/student" but not working when finding a specific document with id…
First i run my sails project in local , after i pushed in git repo and then i changed in online and then pushed in remote place. then i downloaded in my local. This changes produce permission problem. that is
"You don't have permission to see the…
I am using sails 0.10.5 , and i have two models as below for many to many relation. but i am getting error while lifting app.
model 1) Category.js
attributes: {
name: {
type: 'string',
required: true
},
…
This is my codes. i got result when i was using find() all fields but i want to use find with where condition that produce error. what should i change ??
index : function(req, res, next) {
User.find({}).where({userlevel:{'=' :…
My Sails.js application has a model called 'Ideas' and using the default blueprint REST api, I can access the contents of the collection when I go to: http://example.com/ideas/find
Furthermore, by default, I can also limit the data to get specific…
My School model has a name, address, etc. and an owner which is a User object.
School.js
module.exports = {
attributes: {
name: {
type: 'string',
required: true
},
address: {
type: 'string'
},
owner: {
…
I feel like there must be a simple solution to this, but I can't seem to find the right way to search for it online. I'm using a Sails server on Node.js & Express. Right now I'm trying to get a basic CRUD API working, so I've been sending post &…