Previous Page Arrow Next Page Arrow

6.2 Query Filtering


The filtering criteria of a query MUST be passed via the where query parameter. For example:

GET /sdata/myApp/myContract/-/salesOrders?where=subTotal gt 1500.0

The query language is described in the query language section.


In the schema, the properties that can be used to filter SHOULD be flagged with the canFilter attribute. For example:

<xs:element name="subTotal" type="xs:decimal"
            sme:label="Sub-total" sme:canSort="true" sme:canFilter="true" sme:precedence="2" />
SData providers MUST support filtering, at least with the basic query language defined in the Query Language section, and with the properties flagged with sme:canFilter="true".

Previous Page Arrow Next Page Arrow