new Query(qb, model)
| Name | Type | Description |
|---|---|---|
qb | module:Party. | |
model | module:Party. |
- Source
Methods
(static) all()
matches a list that is a superset of given list
| Type | Description |
|---|---|
- Source
(static) and()
following path segments will be anded (default behavior)
- Source
(static) contains(value)
Check if field contains value
| Name | Type | Description |
|---|---|---|
value | * |
- Source
(static) dna()
Closes scope of most recent and
- Source
(static) elem()
list operators -> subtype of match tree nodes -> most recent .where('param') path must be list for these to match searches for a single element of list matching all following conditions between elem .. mele nodes where('path') calls are relative to param path scope at opening of element match
- Source
(static) equals(value)
Check if field equals value
| Name | Type | Description |
|---|---|---|
value | * |
- Source
(async, static) exec(hydrate)
return a promise resolving to result of query
| Name | Type | Description |
|---|---|---|
hydrate | boolean |
- Source
(static) exists(flag)
Check if field exists
| Name | Type | Description |
|---|---|---|
flag | * |
- Source
(static) gt(value)
Check if field is greater than value
| Name | Type | Description |
|---|---|---|
value | * |
- Source
(static) id(id)
query for single msg by given id prereq -> type (not types) all other query ops (except type) will be ignored
| Name | Type | Description |
|---|---|---|
id | string |
- Source
(static) ids(…ids)
query for a list of msgs by given ids prereq -> type (not types) all other query ops (except type) will be ignored
| Name | Type | Attributes | Description |
|---|---|---|---|
ids | any | <repeatable> |
- Source
(static) in(…values)
Check if field is in list of values
| Name | Type | Attributes | Description |
|---|---|---|---|
values | any | <repeatable> |
- Source
(static) limit(count)
limit # of msgs returned by query to a maximum of count
| Name | Type | Description |
|---|---|---|
count | * |
- Source
(static) lt(value)
Check if field is less than value
| Name | Type | Description |
|---|---|---|
value | * |
- Source
(static) mele()
Close elem function stack
- Source
(static) or()
The following path segments will be or'ed
- Source
(static) owner(type, id)
restrict query to msgs with owner matching given type, id pair
| Name | Type | Description |
|---|---|---|
type | * | |
id | * |
- Source
(static) regex(value)
Check if field is matched by regex
| Name | Type | Description |
|---|---|---|
value | * |
- Source
(static) ro()
Close scope of most recent or
- Source
(static) seelct(filter)
filter fields from parameters of returned msgs
| Name | Type | Description |
|---|---|---|
filter | * |
- Source
(static) size(count)
matches list with exactly count items
| Name | Type | Description |
|---|---|---|
count | Integer |
- Source
(static) sort(param, direction)
sort returned msgs on given param path (leading '-' reverses sort)
| Name | Type | Description |
|---|---|---|
param | * | |
direction | * |
- Source
(static) toJSON() → {Object}
- Source
- Type:
- Object
(static) type(type) → {module:Party.Query}
restrict query to msgs of given type
| Name | Type | Description |
|---|---|---|
type | string | Type name |
- Source
- Type:
- module:Party.
Query
(static) types(…types)
restrict query to msgs of given types not compatible with type
| Name | Type | Attributes | Description |
|---|---|---|---|
types | string | <repeatable> |
- Source
(static) where(param)
sets context for following operations to given param path
| Name | Type | Description |
|---|---|---|
param | string | Path to field |
- Source