Skip to content

Function: getSelectionPlan() ​

getSelectionPlan<T, S, V>(viewComposition, ref, options?): SelectionPlan

Defined in: fate/src/selection.ts:40

Flattens a view into a SelectionPlan, expanding composed views and partitioning nested args so the client can fetch exactly what is declared.

Type Parameters ​

T ​

T extends Entity

S ​

S extends Selection<T>

V ​

V extends View<T, S>

Parameters ​

viewComposition ​

V

ref ​

Readonly<{ __typename: T["__typename"]; [ViewsTag]: Set<string>; id: string | number; }> | null

options? ​

includeNestedViews? ​

boolean

Returns ​

SelectionPlan

Released under the MIT License