@textile/hub > Query > (constructor)
Query.(constructor)
Query creates a new generic query object.
Signature:
constructor(ands?: CriterionJSON[], ors?: QueryJSON[], sort?: SortJSON | undefined);
Parameters
| Parameter | Type | Description |
|---|---|---|
| ands | CriterionJSON[] | An array of top-level Criterions to be included in the query. |
| ors | QueryJSON[] | An array of internal queries. |
| sort | SortJSON | undefined | An object describing how to sort the query. |