Skip to content

Commit

Permalink
No duplicate nested query options
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Sep 27, 2024
1 parent 332d202 commit f9dcfa0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/odata-url-conventions/odata-url-conventions.html
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,7 @@ <h3 id="513-system-query-option-expand"><a id="SystemQueryOptionexpand" href="#S
<pre><code>http://host/service/Customers?$expand=Addresses/Country</code></pre>
</div>
<p>A path MUST NOT appear in more than one expand item.</p>
<p>Query options can be applied to an expanded navigation property by appending a semicolon-separated list of query options, enclosed in parentheses, to the navigation property name. Allowed system query options are <a href="#SystemQueryOptioncompute"><code>$compute</code></a>, <a href="#SystemQueryOptionselect"><code>$select</code></a>, <code>$expand</code>, and <a href="#ExpandOptionlevels"><code>$levels</code></a> for all navigation properties, plus <a href="#SystemQueryOptionfilter"><code>$filter</code></a>, <a href="#SystemQueryOptionorderby"><code>$orderby</code></a>, <a href="#SystemQueryOptionstopandskip"><code>$skip</code></a>, <a href="#SystemQueryOptionstopandskip"><code>$top</code></a>, <a href="#SystemQueryOptioncount"><code>$count</code></a>, and <a href="#SystemQueryOptionsearch"><code>$search</code></a> for collection-valued navigation properties.</p>
<p>Query options can be applied to an expanded navigation property by appending a semicolon-separated list of query options, enclosed in parentheses, to the navigation property name. Allowed system query options are <a href="#SystemQueryOptioncompute"><code>$compute</code></a>, <a href="#SystemQueryOptionselect"><code>$select</code></a>, <code>$expand</code>, and <a href="#ExpandOptionlevels"><code>$levels</code></a> for all navigation properties, plus <a href="#SystemQueryOptionfilter"><code>$filter</code></a>, <a href="#SystemQueryOptionorderby"><code>$orderby</code></a>, <a href="#SystemQueryOptionstopandskip"><code>$skip</code></a>, <a href="#SystemQueryOptionstopandskip"><code>$top</code></a>, <a href="#SystemQueryOptioncount"><code>$count</code></a>, and <a href="#SystemQueryOptionsearch"><code>$search</code></a> for collection-valued navigation properties. The same system query option, irrespective of casing or whether or not it is prefixed with a <code>$</code>, MUST NOT be specified more than once for a collection-valued navigation property.</p>
<div class="example">
<p>Example 124: all categories and for each category all related products with a discontinued date equal to <code>null</code></p>
<pre><code>http://host/service/Categories?$expand=Products($filter=DiscontinuedDate eq null)</code></pre>
Expand Down
2 changes: 2 additions & 0 deletions docs/odata-url-conventions/odata-url-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3634,6 +3634,8 @@ Allowed system query options are
[`$count`](#SystemQueryOptioncount), and
[`$search`](#SystemQueryOptionsearch)
for collection-valued navigation properties.
The same system query option, irrespective of casing or whether or not it is prefixed with a `$`,
MUST NOT be specified more than once for a collection-valued navigation property.

::: example
Example 124: all categories and for each category all related products
Expand Down
2 changes: 2 additions & 0 deletions odata-url-conventions/5 Query Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2061,6 +2061,8 @@ Allowed system query options are
[`$count`](#SystemQueryOptioncount), and
[`$search`](#SystemQueryOptionsearch)
for collection-valued navigation properties.
The same system query option, irrespective of casing or whether or not it is prefixed with a `$`,
MUST NOT be specified more than once for a collection-valued navigation property.

::: example
Example ##ex: all categories and for each category all related products
Expand Down

0 comments on commit f9dcfa0

Please sign in to comment.