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
{{ message }}
This repository was archived by the owner on Jun 22, 2021. It is now read-only.
BREAKING CHANGE: The `filter`, `sort`, and `paginate` options are now optional.
BREAKING CHANGE: The `upsertEntity` function has been removed due to filter issues.
BREAKING CHANGE: The `overwriteEntity` function was renamed to `replaceEntity`.
This package contains the [create entity tests](../src/tests/createEntity) and the [create entity signature](../src/signatures/CreateEntity.ts) for this function.
This package contains the [get entities tests](../src/tests/getEntities) and the [get entities signature](../src/signatures/GetEntities.ts) for this function.
60
68
61
69
### getEntity
62
-
Retrieves a single entity that matches the `id`option.
70
+
Retrieves a single entity that matches the `id`and `filter` options.
// No entity exists that matches the given id and filter options.
105
+
}
106
+
throwerr;
107
+
}
80
108
```
81
109
82
-
This package contains the [overwrite entity tests](../src/tests/overwriteEntity) and the [overwrite entity signature](../src/signatures/OverwriteEntity.ts) for this function.
110
+
This package contains the [replace entity tests](../src/tests/replaceEntity) and the [replace entity signature](../src/signatures/ReplaceEntity.ts) for this function.
83
111
84
112
### patchEntity
85
-
For an entity that matches the `id`option, it changes some of an entity's properties using the `patch` option.
113
+
For an entity that matches the `id`and `filter` options, it changes some of an entity's properties using the `patch` option.
// No entity exists that matches the given id and filter options.
127
+
}
128
+
throwerr;
129
+
}
92
130
```
93
131
94
132
This package contains the [patch entity tests](../src/tests/patchEntity) and the [patch entity signature](../src/signatures/PatchEntity.ts) for this function.
This package contains the [remove entities tests](../src/tests/removesEntities) and the [remove entities signature](../src/signatures/RemoveEntities.ts) for this function.
106
144
107
145
### removeEntity
108
-
Removes an entity that matches the `id`option.
146
+
Removes an entity that matches the `id`and `filter` options.
// No entity exists that matches the given id and filter options.
159
+
}
160
+
throwerr;
161
+
}
114
162
```
115
163
116
164
This package contains the [remove entity tests](../src/tests/removesEntity) and the [remove entity signature](../src/signatures/RemoveEntity.ts) for this function.
117
-
118
-
### upsertEntity
119
-
Creates an entity when no entity exists that matches the `id` option. Otherwise, it overwrites all of the properties for an entity that matches the `id` option.
120
-
121
-
```ts
122
-
awaitfacade.upsertEntity({
123
-
id: 'example_id',
124
-
entity: { id: 'example_id', foo: 'bar' },
125
-
});
126
-
```
127
-
128
-
This package contains the [upsert entity tests](../src/tests/upsertsEntity) and the [upsert entity signature](../src/signatures/UpsertEntity.ts) for this function.
0 commit comments