The decoded query, with resolved IRIs if base is provided
For "form" format, the decoder accepts both canonical and shorthand forms:
>=price=100price>=100name="widget"name=widgetTagged strings always require the canonical "value"@tag format.
// Form format with shorthand operators (auto-detected)
decodeQuery("~name=widget&price>=50&^price=1&#=25");
// → { "~name": "widget", ">=price": 50, "^price": 1, "#": 25 }
Decodes a query from a URL-safe string.
Parses an encoded query string back into a Query object. The encoding format is auto-detected from the input string structure.
If
baseis provided, resolves internal IRIs (matchingisIRI(value, "internal")) to absolute IRIs usingresolve(), recursively throughout the query structure. Otherwise, performs plain parsing.