Commit | Line | Data |
c1a04675 |
1 | { |
401a9e9b |
2 | "might_have": { |
3 | "fetch": 0 |
c1a04675 |
4 | }, |
401a9e9b |
5 | "has_many": { |
6 | "fetch": 0 |
c1a04675 |
7 | }, |
401a9e9b |
8 | "sets": [{ |
9 | "class": "User", |
10 | "cond": { "photo_count": { "<": 5 } }, |
11 | "quantity": 3, |
12 | "datetime_relative": today, |
13 | "fetch": [{ |
14 | "rel": comments, |
15 | "cond": { "comments": { "!=": "faks" }}, |
16 | "quantity": 2 |
c1a04675 |
17 | }] |
18 | }, { |
401a9e9b |
19 | "class": "User", |
20 | "cond": { "photo_count": { ">=": 5 } }, |
21 | "quantity": 3 |
c1a04675 |
22 | }, { |
401a9e9b |
23 | "class": "Video", |
24 | "quantity": 3 |
c1a04675 |
25 | }, { |
401a9e9b |
26 | "class": "FeaturedVideo", |
27 | "quantity": 3 |
c1a04675 |
28 | }], |
401a9e9b |
29 | "rules": { |
30 | "User": { |
31 | "cond": { "video_count": { ">=": 5 } } |
c1a04675 |
32 | }, |
401a9e9b |
33 | "Video": { |
34 | "fetch": [{ |
35 | "rel": user_videos, |
36 | "cond": { me."fk_user_id": "\= video.fk_owner_id" }, |
37 | "join": "video" |
c1a04675 |
38 | }] |
39 | } |
40 | } |
41 | } |