Directus / @directus/sdk / rest / queryToParams
Function: queryToParams() ​
queryToParams<
Schema
,Item
>(query
):Record
<string
,string
>
Transform nested query object to an url compatible format
Type Parameters ​
• Schema
• Item
Parameters ​
• query: ExtendedQuery
<Schema
, Item
>
The nested query object
Returns ​
Record
<string
, string
>
Flat query parameters