## BaseQuery


Immutable query base with filtering, pagination, loading, and execution.


Usage

``` python
BaseQuery(
    backend,
    *,
    context,
    model=None,
    filters=None,
    predicates=None,
    orderings=None,
    preloads=None,
    limit=None,
    offset=None,
    property_filters=None,
    parent_resource_id=None,
    parameter_filters=None,
    include_archived=False,
    local_metadata_filters=None,
    effective_metadata_filters=None,
    load_mode=None,
    on_unloaded=None
)
```


## Methods

| Name | Description |
|----|----|
| [all()](#all) | Execute query and return all matching models or references. |
| [count()](#count) | Return matching row count without materializing rows. |
| [export()](#export) | Export one materialized query result through a registered exporter. |
| [filter()](#filter) | Return clone with equality filters merged. |
| [first()](#first) | Execute query and return first match, or `None`. |
| [include()](#include) | Return clone requesting relation preloads. |
| [include_archived()](#include_archived) | Return clone including archived entities. |
| [limit()](#limit) | Return clone constrained to at most `value` rows. |
| [offset()](#offset) | Return clone skipping `value` rows. |
| [order_by()](#order_by) | Return clone with orderings appended. |
| [where()](#where) | Return clone with predicates appended using AND semantics. |

------------------------------------------------------------------------


#### all()


Execute query and return all matching models or references.


Usage

``` python
all()
```


------------------------------------------------------------------------


#### count()


Return matching row count without materializing rows.


Usage

``` python
count()
```


------------------------------------------------------------------------


#### export()


Export one materialized query result through a registered exporter.


Usage

``` python
export(format, destination=None)
```


------------------------------------------------------------------------


#### filter()


Return clone with equality filters merged.


Usage

``` python
filter(**kwargs)
```


------------------------------------------------------------------------


#### first()


Execute query and return first match, or `None`.


Usage

``` python
first()
```


------------------------------------------------------------------------


#### include()


Return clone requesting relation preloads.


Usage

``` python
include(relation_names)
```


------------------------------------------------------------------------


#### include_archived()


Return clone including archived entities.


Usage

``` python
include_archived()
```


------------------------------------------------------------------------


#### limit()


Return clone constrained to at most `value` rows.


Usage

``` python
limit(value)
```


------------------------------------------------------------------------


#### offset()


Return clone skipping `value` rows.


Usage

``` python
offset(value)
```


------------------------------------------------------------------------


#### order_by()


Return clone with orderings appended.


Usage

``` python
order_by(*orderings)
```


------------------------------------------------------------------------


#### where()


Return clone with predicates appended using AND semantics.


Usage

``` python
where(*predicates)
```
