Function: parseQuery()
parseQuery(
queryString):QueryOptions
Defined in: parser/parser.ts:706
Parse an OData query string into a QueryOptions object. Handles $filter, $orderby, $select, $top, $skip and $expand; unknown query options (and $count, $search, $apply) are silently ignored, and the last of repeated options wins.
The string is split on & and the values are used as given, without percent-decoding, so a value cannot hold &. For a percent-encoded query string use parseQueryString, and for decoded values by name (req.query) use parseQueryOptions.
Parameters
queryString
string
Query string, with or without leading '?'
Returns
Parsed QueryOptions (fields are optional — only present when found in query)
Throws
ODataParseError on syntax errors