odata-query
Advanced tools
Comparing version 3.3.1 to 3.3.2
@@ -197,4 +197,3 @@ 'use strict'; | ||
} else if (value instanceof Date) { | ||
var isoString = value.toISOString(); | ||
return isoString.split('.')[0] + "Z"; // strip microseconds | ||
return value.toISOString(); | ||
} else { | ||
@@ -239,3 +238,3 @@ // TODO: Figure out how best to specify types. See: https://github.com/devnixs/ODataAngularResources/blob/master/src/odatavalue.js | ||
return expandKeys.map(function (key) { | ||
var value = key === 'filter' ? buildFilter(expands[key]) : key === 'orderBy' ? buildOrderBy(expands[key]) : buildExpand(expands[key]); | ||
var value = key === 'filter' ? buildFilter(expands[key]) : key.toLowerCase() === 'orderby' ? buildOrderBy(expands[key]) : buildExpand(expands[key]); | ||
return '$' + key.toLowerCase() + '=' + value; | ||
@@ -242,0 +241,0 @@ }).join(';'); |
{ | ||
"name": "odata-query", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"author": "Sean Lynch <techniq35@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -26,2 +26,36 @@ # odata-query | ||
- [Filtering](#filtering) | ||
- [Simple equality filter](#simple-equality-filter) | ||
- [Comparison operators](#comparison-operators) | ||
- [Logical operators](#logical-operators) | ||
- [Implied `and` with an array of objects](#implied-and-with-an-array-of-objects) | ||
- [Implied `and` with multiple comparison operators for a single property](#implied-and-with-multiple-comparison-operators-for-a-single-property) | ||
- [Explicit operator](#explicit-operator) | ||
- [Collection operators](#collection-operators) - `any`, `all` | ||
- [Implied and with an object or array of objects](#implied-and) | ||
- [Explicit operator (`and`, `or`)](#explicit-operator-and-or) | ||
- [Functions](#functions) | ||
- [String functions returning boolean](#string-functions-returning-boolean) | ||
- [Functions returning non-boolean values (string, int)](#functions-returning-non-boolean-values-string-int) | ||
- [Functions returning non-boolean values (string, int) with parameters](#functions-returning-non-boolean-values-string-int-with-parameters) | ||
- [Strings](#strings) | ||
- [Data types](#data-types) | ||
- [Selecting](#selecting) | ||
- [Ordering](#ordering) | ||
- [Expanding](#expanding) | ||
- [Nested expand using slash seperator](#nested-expand-using-slash-seperator) | ||
- [Nested expand with an object](#nested-expand-with-an-object) | ||
- [Multiple expands as an array](#multiple-expands-as-an-array) | ||
- [Filter expanded items](#filter-expanded-items) | ||
- [Select only specific properties of expanded items](#select-only-specific-properties-of-expanded-items) | ||
- [Return only a subset of expanded items](#return-only-a-subset-of-expanded-items) | ||
- [Order expanded items](#order-expanded-items) | ||
- [filter, select, top, and orderBy can be used together](#filter-select-top-and-orderby-can-be-used-together) | ||
- [Pagination (skip and top)](#pagination-skip-and-top) | ||
- [Single-item (key)](#single-item-key) | ||
- [Counting](#counting) | ||
- [Actions](#actions) | ||
- [Functions](#functions-1) | ||
- [Grouping / aggregation](#grouping--aggregation) | ||
### Filtering | ||
@@ -33,3 +67,3 @@ ```js | ||
#### Simple filter | ||
#### Simple equality filter | ||
```js | ||
@@ -116,3 +150,3 @@ const filter = { PropName: 1 }; | ||
##### Specify logical operator (and, or) | ||
##### Explicit operator (`and`, `or`) | ||
```js | ||
@@ -220,3 +254,3 @@ const filter = { | ||
#### Project expanded items (select only specific properties) | ||
#### Select only specific properties of expanded items | ||
```js | ||
@@ -223,0 +257,0 @@ const expand = { Friends: { select: ['Name', 'Age'] } }; |
20893
381
236