ViewModelFieldPaths

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

API

Constructor

new ViewModelFieldPaths(modelClass,flattenedPath)
Source

Arguments:

ArgumentTypeDescription
*modelClassT
*flattenedPathstring[]

Methods

isSubset(paths,?ignoreNested)
Source

Arguments:

ArgumentTypeDescription
*pathsViewModelFieldPaths
ignoreNestedboolean
Returns:boolean

Properties

fieldPaths

Source
string|string[][]

flattenedPath

Source
string[]
string

modelClass

Source
T

nonRelationFieldNames

Source
string[]

relations

Source
Record