ViewModelFieldPaths

Source
import { ViewModelFieldPaths } from "@prestojs/viewmodel";
ViewModelFieldPaths<T>

API

Constructor

new ViewModelFieldPaths(modelClass,flattenedPath)
Params:
ParameterTypeDescription
*modelClassT
*flattenedPathstring[]

Methods

isSubset(paths,?ignoreNested)
Params:
ParameterTypeDescription
*pathsViewModelFieldPaths
ignoreNestedboolean
Returns:boolean

Properties

fieldPaths

Source
(Extract|ValueOf)[]

flattenedPath

Source
string[]
string

modelClass

Source
T

nonRelationFieldNames

Source
string[]

relations

Source
Record