bridge-odata
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "bridge-odata", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Retsly OData JS SDK", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -52,2 +52,4 @@ const request = require('superagent') | ||
} | ||
// The endpoints form the OData API | ||
Property (key) { | ||
@@ -78,2 +80,24 @@ // Response reset, otherwise count(), next(), and prev() will still work. | ||
$skip (data) { | ||
this.query.$skip = data | ||
} | ||
$select (data) { | ||
this.query.$select = data | ||
} | ||
$top (data) { | ||
this.query.$top = data | ||
} | ||
$orderby (data) { | ||
this.query.$orderby = data | ||
} | ||
$expand (data) { | ||
this.query.$expand = data | ||
} | ||
$filter (data) { | ||
this.query.$filter = new Filter(data).toString() | ||
} | ||
// Helper functions | ||
count () { | ||
@@ -80,0 +104,0 @@ this._verifyResponse('count()') |
17989
448