Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created January 8, 2009 21:29

Revisions

  1. swannodette revised this gist Jan 8, 2009. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion SSCollectionJSON.js
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    {
    action: 'create/read/update/delete',
    table: 'user/shift/trail/comment',
    user_id: 67 // a constraint,
    constraints: {
    user_id: 67
    },
    properties: '*' || ['username', 'summary', 'modified'],
    orderby: ['<' || '>', 'modified'],
    startIndex: 2,
  2. swannodette revised this gist Jan 8, 2009. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion SSCollectionJSON.js
    Original file line number Diff line number Diff line change
    @@ -3,5 +3,7 @@
    table: 'user/shift/trail/comment',
    user_id: 67 // a constraint,
    properties: '*' || ['username', 'summary', 'modified'],
    orderby: ['<' || '>', 'modified']
    orderby: ['<' || '>', 'modified'],
    startIndex: 2,
    count: 20
    }
  3. swannodette created this gist Jan 8, 2009.
    7 changes: 7 additions & 0 deletions SSCollectionJSON.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    {
    action: 'create/read/update/delete',
    table: 'user/shift/trail/comment',
    user_id: 67 // a constraint,
    properties: '*' || ['username', 'summary', 'modified'],
    orderby: ['<' || '>', 'modified']
    }