Files
deployd/test-app/resources/users/config.json
2012-10-30 11:41:46 -07:00

32 lines
681 B
JSON

{
"path": "/users",
"properties": {
"friends": {
"required": false,
"type": "array",
"typeLabel": "array",
"id": "friends",
"name": "friends",
"order": 0
},
"reputation": {
"name": "reputation",
"type": "number",
"typeLabel": "number",
"required": false,
"id": "reputation",
"order": 1
},
"displayName": {
"name": "displayName",
"type": "string",
"typeLabel": "string",
"required": false,
"id": "displayName",
"order": 2
}
},
"typeLabel": "Users Collection",
"type": "UserCollection",
"onGet": "dpd.users.get({id: {$in: this.friends}}, function(friends) {\r\n if (friends) this.friends = friends;\r\n});"
}