Preparing search index...
The search index is not available
Forest Admin - API reference
Forest Admin - API reference
@forestadmin/datasource-toolkit
ConditionTree
Class ConditionTree
Abstract
Hierarchy
ConditionTree
ConditionTreeBranch
ConditionTreeLeaf
Index
Constructors
constructor
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
(
)
:
ConditionTree
Returns
ConditionTree
Accessors
Abstract
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
[]
Abstract
every
Leaf
every
Leaf
(
handler
:
LeafTester
)
:
boolean
Parameters
handler:
LeafTester
Returns
boolean
Abstract
for
Each
Leaf
for
Each
Leaf
(
handler
:
LeafCallback
)
:
void
Parameters
handler:
LeafCallback
Returns
void
Abstract
inverse
inverse
(
)
:
ConditionTree
Returns
ConditionTree
Abstract
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
Abstract
replace
Leafs
replace
Leafs
(
handler
:
LeafReplacer
, bind
?:
unknown
)
:
ConditionTree
Parameters
handler:
LeafReplacer
Optional
bind:
unknown
Returns
ConditionTree
Abstract
replace
Leafs
Async
replace
Leafs
Async
(
handler
:
AsyncLeafReplacer
, bind
?:
unknown
)
:
Promise
<
ConditionTree
>
Parameters
handler:
AsyncLeafReplacer
Optional
bind:
unknown
Returns
Promise
<
ConditionTree
>
Abstract
some
Leaf
some
Leaf
(
handler
:
LeafTester
)
:
boolean
Parameters
handler:
LeafTester
Returns
boolean
Abstract
to
Plain
Object
to
Plain
Object
(
)
:
PlainConditionTree
Returns
PlainConditionTree
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
constructor
projection
apply
every
Leaf
for
Each
Leaf
inverse
match
nest
replace
Fields
replace
Leafs
replace
Leafs
Async
some
Leaf
to
Plain
Object
unnest