Query

Namespace: Saon.Query
Attributes:
[<RequireQualifiedAccess>]

Function to work with queries.

Functions and values

Function or valueDescription
Query.optionalParameter(...)
Signature: paramName:string -> func:Transformer<(type),'T> -> query:(type) -> ParserResult<'T option> * (type)
Type parameters: 'T

Apply the transformation func to the optional parameter paramName.

Query.parameter paramName func query
Signature: paramName:string -> func:Transformer<(type),'T> -> query:(type) -> ParserResult<'T> * (type)
Type parameters: 'T

Apply the transformation func to the parameter paramName.

Query.string propName value
Signature: propName:string -> value:(type) -> ParserResult<string>

Get the parameter string value. If the parameter has more than one value, it will fail.