Entity Query

The Entity Query is similar to the general Query, with additional functionality tailored for EntityStores.

Let's see how we can use it to create a todos query.

import { QueryEntity } from '@datorama/akita';
export class TodosQuery extends QueryEntity<TodosState> {
constructor(protected store: TodosStore) {

The query has two notations - one for getting the data as an observable, which is prefixed with select, and one for getting the raw value, which is prefixed with get.

For example:


By using this model, you will receive a lot of built-in functionality from Akita. Let's explore them in the next section.