Members
_model
The model in question.
- Source:
(private) _root :object
The root query object.
- object
- Source:
Methods
(private) __exec_resolve(object) → {object}
Resolve the filter object from structures to primitives.
Name | Type | Description |
---|---|---|
object |
object |
- Source:
- Type
- object
(private) _unfocus(focus) → {module:flitter-orm/src/filter/Filter~Filter}
Callback to break a field's focus and merge the filters for that field into this filter.
Name | Type | Description |
---|---|---|
focus |
module:flitter-orm/src/filter/Focus~Focus |
- Source:
absorb(other) → {module:flitter-orm/src/filter/Filter~Filter}
Merge this filter with another.
Name | Type | Description |
---|---|---|
other |
module:flitter-orm/src/filter/Filter~Filter |
- Source:
clone() → {module:flitter-orm/src/filter/Filter~Filter}
Clone this filter into a new filter instance. Ensures that modifications to the cloned filter do no affect this existing filter.
- Source:
end() → {module:flitter-orm/src/proxy/model/FilterProxy~FilterProxy}
End the filter and apply it to the model's proxy.
- Source:
equal(field, value) → {module:flitter-orm/src/filter/Filter~Filter}
Asserts that a field must equal the value.
Name | Type | Description |
---|---|---|
field |
string | |
value |
* |
- Source:
field(field) → {module:flitter-orm/src/filter/Focus~Focus}
Focus on a particular field.
Name | Type | Description |
---|---|---|
field |
string |
- Source:
greater_than(field, value) → {module:flitter-orm/src/filter/Filter~Filter}
Asserts that a field must be greater than the value.
Name | Type | Description |
---|---|---|
field |
string | |
value |
* |
- Source:
greater_than_equal(field, value) → {module:flitter-orm/src/filter/Filter~Filter}
Asserts that a field must be greater than or equal to the value.
Name | Type | Description |
---|---|---|
field |
string | |
value |
* |
- Source:
in(field, value) → {module:flitter-orm/src/filter/Filter~Filter}
Asserts that a field must be in the array of options for the value.
Name | Type | Description |
---|---|---|
field |
string | |
value |
* |
- Source:
less_than(field, value) → {module:flitter-orm/src/filter/Filter~Filter}
Asserts that a field must be less than the value.
Name | Type | Description |
---|---|---|
field |
string | |
value |
* |
- Source:
less_than_equal(field, value) → {module:flitter-orm/src/filter/Filter~Filter}
Asserts that a field must be less than or equal to the value.
Name | Type | Description |
---|---|---|
field |
string | |
value |
* |
- Source:
write() → {object}
Write the accumulated filter to a MongoDB compatible filter object.
- Source:
- Type
- object