Preparing search index...
The search index is not available
Forest Admin - API reference
Forest Admin - API reference
@forestadmin/datasource-toolkit
ConditionTreeBranch
Class ConditionTreeBranch
Hierarchy
ConditionTree
ConditionTreeBranch
Index
Constructors
constructor
Properties
aggregator
conditions
Accessors
projection
Methods
apply
every
Leaf
for
Each
Leaf
inverse
match
nest
replace
Fields
replace
Leafs
replace
Leafs
Async
some
Leaf
to
Plain
Object
unnest
Constructors
constructor
new
Condition
Tree
Branch
(
aggregator
:
Aggregator
, conditions
:
ConditionTree
[]
)
:
ConditionTreeBranch
Parameters
aggregator:
Aggregator
conditions:
ConditionTree
[]
Returns
ConditionTreeBranch
Properties
aggregator
aggregator
:
Aggregator
conditions
conditions
:
ConditionTree
[]
Accessors
projection
get
projection
(
)
:
Projection
Returns
Projection
Methods
apply
apply
(
records
:
RecordData
[]
, collection
:
Collection
, timezone
:
string
)
:
RecordData
[]
Parameters
records:
RecordData
[]
collection:
Collection
timezone:
string
Returns
RecordData
[]
every
Leaf
every
Leaf
(
handler
:
LeafTester
)
:
boolean
Parameters
handler:
LeafTester
Returns
boolean
for
Each
Leaf
for
Each
Leaf
(
handler
:
LeafCallback
)
:
void
Parameters
handler:
LeafCallback
Returns
void
inverse
inverse
(
)
:
ConditionTree
Returns
ConditionTree
match
match
(
record
:
RecordData
, collection
:
Collection
, timezone
:
string
)
:
boolean
Parameters
record:
RecordData
collection:
Collection
timezone:
string
Returns
boolean
nest
nest
(
prefix
:
string
)
:
ConditionTree
Parameters
prefix:
string
Returns
ConditionTree
replace
Fields
replace
Fields
(
handler
:
(
(
field
:
string
)
=>
string
)
)
:
ConditionTree
Parameters
handler:
(
(
field
:
string
)
=>
string
)
(
field
:
string
)
:
string
Parameters
field:
string
Returns
string
Returns
ConditionTree
replace
Leafs
replace
Leafs
(
handler
:
LeafReplacer
, bind
?:
unknown
)
:
ConditionTree
Parameters
handler:
LeafReplacer
Optional
bind:
unknown
Returns
ConditionTree
replace
Leafs
Async
replace
Leafs
Async
(
handler
:
AsyncLeafReplacer
, bind
?:
unknown
)
:
Promise
<
ConditionTree
>
Parameters
handler:
AsyncLeafReplacer
Optional
bind:
unknown
Returns
Promise
<
ConditionTree
>
some
Leaf
some
Leaf
(
handler
:
LeafTester
)
:
boolean
Parameters
handler:
LeafTester
Returns
boolean
to
Plain
Object
to
Plain
Object
(
)
:
PlainConditionTreeBranch
Returns
PlainConditionTreeBranch
unnest
unnest
(
)
:
ConditionTree
Returns
ConditionTree
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Forest
Admin -
API reference
@forestadmin/agent
@forestadmin/datasource-
customizer
@forestadmin/datasource-
mongoose
@forestadmin/datasource-
sequelize
@forestadmin/datasource-
sql
@forestadmin/datasource-
toolkit
@forestadmin/plugin-
aws-
s3
@forestadmin/plugin-
export-
advanced
Condition
Tree
Branch
constructor
aggregator
conditions
projection
apply
every
Leaf
for
Each
Leaf
inverse
match
nest
replace
Fields
replace
Leafs
replace
Leafs
Async
some
Leaf
to
Plain
Object
unnest