Spark-star

Results issues of Spark-star

I'm a newer to loopback! when I used acl to deny someone modify model's specified property like this: { "principalType": "ROLE", "principalId": "admin", "permission": "DENY", "accessType": "READ", "property":"title" } "admin"...

I have tried the example in the http://docs.strongloop.com/display/LB/Embedded+models+and+relations, I defined the models in the model.json, the "embedsMany" relation in model.json like this: Category.json "relations": { "items": { "type": "embedsMany", "model":...

How can I use others mongodb native method(i.e $exists, $elementMatch) expect the operators the document mentioned ( like, nlike, gt, lt and so on)? In forum , I found someone...

bug

I created a model Account which extend from "User", I also covered the relations with "AccessToken" like this ``` "accessTokens": { "type": "hasMany", "model": "AccessToken", "foreignKey": "accountId" } ``` My...

I created a model "Account" which extended from "User", I defined the property "ttl" like this: ``` { "name": "Account", "plural": "accounts", "base": "User", "Model": { "Master": "master" }, "ttl":...

I used the "near" method to get accords neared me, it works well. But I want the response also have the "distance" property which I want display in my application....

Hi, everyone. I want to know how to define method in relation? In my app: A hasmany B, B blongsTo A ; The route "/a/:id/B/:fk" , Corresponding method is "updateById__bs"...

Hi ,everyone I want to create a 'accessToken' which more than '129600'. I define 'ttl' equal '31449600' in my 'account' model which extend from 'user' model. In my opinion ,...

Hi ,erveryone. I set the 'lastUpdated' value in 'beforeUpdate'. when I used updateById to update record, the response record 'lastUpdated' is the time I changed the record, but in database...

Hi, everyone. I have to create two apps which have same models and relations between model, but they have different acls and remote methods. How can I create models that...