@lubusin/wp-frappe-data-store / toFrappeQuery
Function: toFrappeQuery()
toFrappeQuery(
query?):Record<string,string>
Defined in: src/utils.ts:76
Serializes a typed FrappeListQuery object into flat string query parameters expected by Frappe REST endpoints. Automatically ensures name is present in requested fields.
Parameters
query?
FrappeListQuery = {}
Typed query parameters.
Returns
Record<string, string>
Record of string key-value pairs suitable for URL search parameters.