Skip to content

Commit

Permalink
Merge pull request #109 from janhommes/feature/dependency-updates
Browse files Browse the repository at this point in the history
Updating dependencies
  • Loading branch information
janhommes authored Jun 7, 2020
2 parents 7f60418 + 0d8b7e0 commit 70e40d7
Show file tree
Hide file tree
Showing 4 changed files with 3,107 additions and 2,006 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: node_js
node_js:
- "node"
- "10.0"
- "8.0"
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ $compute?: string;
$index?: number;
[key: string]: any; // allows to add anything that is missing
```
NB: this $count flag will add an inline count property as metadata to a query response. In order to just retrieve the count, you'll have query the $count resource, such as
> The $count flag will add an inline count property as metadata to a query response. In order to just retrieve the count, you'll have query the $count resource, such as
```typescript
oHandler.get('People/$count').query().then(function (count) {
oHandler.get('People/$count').query().then((count) => {})
```
The queries are always attached as the [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams).
Expand All @@ -165,7 +166,7 @@ The queries are always attached as the [URLSearchParams](https://developer.mozil
The lib tries to parse the data on each request. Sometimes that is not wanted (e.g. when you need a status-code or need to access odata meta data), therefor you can use the `.fetch` method that acts like the default [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).
## Batching
By default o.js request chained request in sequent. You can batch them together by using `batch()`. They are then send to the defined batch endpoint in the config. Changsets are at the moment in a experimental phase and needs to be enabled in the config.
By default o.js chains request in sequent. You can batch them together by using `batch()`. They are then send to the defined batch endpoint in the config. Changsets are at the moment in a experimental phase and needs to be enabled in the config.
## Polyfills
Polyfills are automatically added for `fetch()` and `URL()` if needed. The automatic polyfilling can be disabled in the options.
Loading

0 comments on commit 70e40d7

Please sign in to comment.