# queryset.field\_accessor ## FieldAccessor Objects ```python class FieldAccessor() ``` Helper to access ormar fields directly from Model class also for nested models attributes. #### \_\_bool\_\_ ```python | __bool__() -> bool ``` Hack to avoid pydantic name check from parent model, returns false **Returns**: `bool`: False #### \_\_getattr\_\_ ```python | __getattr__(item: str) -> Any ``` Accessor return new accessor for each field and nested models. Thanks to that operator overload is possible to use in filter. **Arguments**: - `item` (`str`): attribute name **Returns**: `ormar.queryset.field_accessor.FieldAccessor`: FieldAccessor for field or nested model #### \_\_eq\_\_ ```python | __eq__(other: Any) -> FilterGroup ``` overloaded to work as sql `column = ` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### \_\_ge\_\_ ```python | __ge__(other: Any) -> FilterGroup ``` overloaded to work as sql `column >= ` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### \_\_gt\_\_ ```python | __gt__(other: Any) -> FilterGroup ``` overloaded to work as sql `column > ` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### \_\_le\_\_ ```python | __le__(other: Any) -> FilterGroup ``` overloaded to work as sql `column <= ` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### \_\_lt\_\_ ```python | __lt__(other: Any) -> FilterGroup ``` overloaded to work as sql `column < ` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### \_\_mod\_\_ ```python | __mod__(other: Any) -> FilterGroup ``` overloaded to work as sql `column LIKE '%%'` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### \_\_lshift\_\_ ```python | __lshift__(other: Any) -> FilterGroup ``` overloaded to work as sql `column IN (, ,...)` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### \_\_rshift\_\_ ```python | __rshift__(other: Any) -> FilterGroup ``` overloaded to work as sql `column IS NULL` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### in\_ ```python | in_(other: Any) -> FilterGroup ``` works as sql `column IN (, ,...)` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### iexact ```python | iexact(other: Any) -> FilterGroup ``` works as sql `column = ` case-insensitive **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### contains ```python | contains(other: Any) -> FilterGroup ``` works as sql `column LIKE '%%'` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### icontains ```python | icontains(other: Any) -> FilterGroup ``` works as sql `column LIKE '%%'` case-insensitive **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### startswith ```python | startswith(other: Any) -> FilterGroup ``` works as sql `column LIKE '%'` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### istartswith ```python | istartswith(other: Any) -> FilterGroup ``` works as sql `column LIKE '%'` case-insensitive **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### endswith ```python | endswith(other: Any) -> FilterGroup ``` works as sql `column LIKE '%'` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### iendswith ```python | iendswith(other: Any) -> FilterGroup ``` works as sql `column LIKE '%'` case-insensitive **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### isnull ```python | isnull(other: Any) -> FilterGroup ``` works as sql `column IS NULL` or `IS NOT NULL` **Arguments**: - `other` (`str`): value to check agains operator **Returns**: `ormar.queryset.clause.FilterGroup`: FilterGroup for operator #### asc ```python | asc() -> OrderAction ``` works as sql `column asc` **Returns**: `ormar.queryset.actions.OrderGroup`: OrderGroup for operator #### desc ```python | desc() -> OrderAction ``` works as sql `column desc` **Returns**: `ormar.queryset.actions.OrderGroup`: OrderGroup for operator