# Common Selectors

Much like @ngrx/entity, when you build state for a new entity with NgRx Auto-Entity we provide a set of ready-made common selectors. These selectors allow you to retrieve the state Auto-Entity manages for you.

{% hint style="info" %}
We have attempted to maintain compatibility with @ngrx/entity here, so we include the core standard set of selectors that are provided by that framework.
{% endhint %}

{% hint style="success" %}
To name a few\...

* selectAll
* selectEntities
* selectIds
* selectTotal
* ...
  {% endhint %}

These selectors are returned from our `buildState` utility function as a `ISelectorMap<TParentState, TModel>`. See the reference documentation for the full interface definition and the complete list of selectors.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://briebug.gitbook.io/ngrx-auto-entity/advanced/usage/common-selectors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
