You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/ngrx.io/content/guide/entity/adapter.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,18 +83,19 @@ The entity adapter also provides methods for operations against an entity. These
83
83
one to many records at a time. Each method returns the newly modified state if changes were made and the same
84
84
state if no changes were made.
85
85
86
-
-`addOne`: Add one entity to the collection
87
-
-`addMany`: Add multiple entities to the collection
88
-
-`setAll`: Replace current collection with provided collection
89
-
-`setOne`: Add or Replace one entity in the collection
90
-
-`removeOne`: Remove one entity from the collection
91
-
-`removeMany`: Remove multiple entities from the collection, by id or by predicate
92
-
-`removeAll`: Clear entity collection
86
+
-`addOne`: Add one entity to the collection.
87
+
-`addMany`: Add multiple entities to the collection.
88
+
-`setAll`: Replace current collection with provided collection.
89
+
-`setOne`: Add or Replace one entity in the collection.
90
+
-`removeOne`: Remove one entity from the collection.
91
+
-`removeMany`: Remove multiple entities from the collection, by id or by predicate.
92
+
-`removeAll`: Clear entity collection.
93
93
-`updateOne`: Update one entity in the collection. Supports partial updates.
94
94
-`updateMany`: Update multiple entities in the collection. Supports partial updates.
95
95
-`upsertOne`: Add or Update one entity in the collection. Supports partial updates.
96
96
-`upsertMany`: Add or Update multiple entities in the collection. Supports partial updates.
97
-
-`map`: Update multiple entities in the collection by defining a map function, similar to [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)
97
+
-`mapOne`: Update one entity in the collection by defining a map function.
98
+
-`map`: Update multiple entities in the collection by defining a map function, similar to [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map).
98
99
99
100
Usage:
100
101
@@ -107,7 +108,7 @@ export interface User {
107
108
108
109
<code-exampleheader="user.actions.ts">
109
110
import { createAction, props } from '@ngrx/store';
110
-
import { Update, EntityMap, Predicate } from '@ngrx/entity';
111
+
import { Update, EntityMap, EntityMapOne, Predicate } from '@ngrx/entity';
0 commit comments