Search
Preparing search index...
The search index is not available
nomatic-data
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
Query
Class Query
Hierarchy
Query
Index
Constructors
constructor
Properties
data
run
Handler
COMPARISON_
OPERATORS
ELEMENT_
OPERATORS
LOGIC_
OPERATORS
Methods
add
and
fields
limit
or
run
skip
sort
toJSON
where
Constructors
constructor
new
Query
(
runHandler
?:
function
, data
?:
object
)
:
Query
new
Query
(
runHandler
?:
function
, data
?:
object
)
:
Query
Parameters
Optional
runHandler:
function
(
query
:
Query
)
:
Promise
<
RecordData
[]
>
Parameters
query:
Query
Returns
Promise
<
RecordData
[]
>
Optional
data:
object
Returns
Query
Parameters
Optional
runHandler:
function
(
query
:
Query
)
:
Promise
<
RecordData
[]
>
Parameters
query:
Query
Returns
Promise
<
RecordData
[]
>
Optional
data:
object
Returns
Query
Properties
data
data
:
any
run
Handler
run
Handler
:
function
Type declaration
(
query
:
object
)
:
Promise
<
RecordData
[]
>
Parameters
query:
object
Returns
Promise
<
RecordData
[]
>
Static
COMPARISON_
OPERATORS
COMPARISON_
OPERATORS
:
string
[]
= ['$eq','$gt','$gte','$in','$lt','$lte','$ne','$nin']
Static
ELEMENT_
OPERATORS
ELEMENT_
OPERATORS
:
string
[]
= ['$exists']
Static
LOGIC_
OPERATORS
LOGIC_
OPERATORS
:
string
[]
= ['$and','$or']
Methods
add
add
(
key
:
string
, operator
?:
string
, value
?:
any
, logicalOperator
?:
string
)
:
this
add
(
key
:
string
, operator
?:
string
, value
?:
any
, logicalOperator
?:
string
)
:
this
Parameters
key:
string
Optional
operator:
string
Optional
value:
any
Optional
logicalOperator:
string
Returns
this
Parameters
key:
string
Optional
operator:
string
Optional
value:
any
Optional
logicalOperator:
string
Returns
this
and
and
(
key
:
string
)
:
WhereQuery
and
(
key
:
string
)
:
WhereQuery
Parameters
key:
string
Returns
WhereQuery
Parameters
key:
string
Returns
WhereQuery
fields
fields
(
...
fields
:
(
string
|
string
[]
)
[]
)
:
this
fields
(
...
fields
:
(
string
|
string
[]
)
[]
)
:
this
Parameters
Rest
...
fields:
(
string
|
string
[]
)
[]
Returns
this
Parameters
Rest
...
fields:
(
string
|
string
[]
)
[]
Returns
this
limit
limit
(
value
:
number
)
:
this
limit
(
value
:
number
)
:
this
Parameters
value:
number
Returns
this
Parameters
value:
number
Returns
this
or
or
(
key
:
string
)
:
WhereQuery
or
(
key
:
string
)
:
WhereQuery
Parameters
key:
string
Returns
WhereQuery
Parameters
key:
string
Returns
WhereQuery
run
run
(
)
:
Promise
<
RecordData
[]
>
run
(
)
:
Promise
<
RecordData
[]
>
Returns
Promise
<
RecordData
[]
>
Returns
Promise
<
RecordData
[]
>
skip
skip
(
value
:
number
)
:
this
skip
(
value
:
number
)
:
this
Parameters
value:
number
Returns
this
Parameters
value:
number
Returns
this
sort
sort
(
key
:
string
|
any
[]
, order
?:
number
)
:
this
sort
(
key
:
string
|
any
[]
, order
?:
number
)
:
this
Parameters
key:
string
|
any
[]
Default value
order:
number
= 1
Returns
this
Parameters
key:
string
|
any
[]
Optional
order:
number
Returns
this
toJSON
toJSON
(
)
:
any
toJSON
(
)
:
any
Returns
any
Returns
any
where
where
(
key
:
string
, operator
?:
string
, value
?:
any
, logicalOperator
?:
string
)
:
WhereQuery
where
(
key
:
string
, operator
?:
string
, value
?:
any
, logicalOperator
?:
string
)
:
WhereQuery
Parameters
key:
string
Optional
operator:
string
Optional
value:
any
Optional
logicalOperator:
string
Returns
WhereQuery
Parameters
key:
string
Optional
operator:
string
Optional
value:
any
Optional
logicalOperator:
string
Returns
WhereQuery
Globals
Adapter
Adapter
Error
Already
Exists
Error
Assertion
Error
Container
Data
Error
Database
Adapter
Mapper
Not
Found
Error
Query
constructor
data
run
Handler
COMPARISON_
OPERATORS
ELEMENT_
OPERATORS
LOGIC_
OPERATORS
add
and
fields
limit
or
run
skip
sort
toJSON
where
Record
Validation
Error
Where
Query
Adapter
Options
Container
Mapper
Options
Container
Mappers
Container
Options
Container
Validator
Options
Mapper
Options
Record
Change
Record
Data
Record
Options
Record
Virtual
Properties
Record
Virtual
Property
Options
Validation
Error
Options
Container
Before
Get
Hook
Function
Container
Hook
Function
Container
Validate
Hook
Function
Mapper
Before
Get
Hook
Function
Mapper
Hook
Function
Mapper
Validate
Hook
Function
Mapper
Validate
Hook
Operation
Record
Operation
Record
Save
Function
Record
Validate
Function
Record
Virtual
Property
Function