Function: filterBy()
filterBy(
key,value?): <C>(action) =>Promise<Action<Awaited<C> &object,object>>
Filter the JSON:API resource by the given key and value. When key is an object, it will spread the object as a filter values map. The new filter will be merged with the previous ones.
Parameters
• key: string | Dictionary
• value?: unknown
Returns
Function
Type parameters
• C extends object
Parameters
• action: Action<C>
Returns
Promise <Action<Awaited<C> & object, object>>