QueryParams Module
Serializes F# records to URL query strings for XRPC query parameters. Used internally by query to convert typed parameter records into query-string form.
Functions and values
| Function or value |
Description
|
Full Usage:
toQueryString record
Parameters:
'T
-
An F# record whose fields map to query-string parameters.
Returns: string
A query string such as "?actor=my-handle.bsky.social&limit=50",
or an empty string if the record produces no parameters.
|
Converts an F# record to a URL query string (including the leading Field names are converted to camelCase. The following field types are supported:
Example
type Params =
{
Actor: string
Limit: int option
}
Multiple items
val string: value: 'T -> string -------------------- type string = System.String Multiple items
val int: value: 'T -> int (requires member op_Explicit) -------------------- type int = int32 -------------------- type int<'Measure> = int type 'T option = Option<'T>
union case Option.Some: Value: 'T -> Option<'T>
|