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: docs/useCases.md
+29
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ The different use cases currently available in the package are classified below,
16
16
-[List All Collection Items](#list-all-collection-items)
17
17
-[Collections write use cases](#collections-write-use-cases)
18
18
-[Create a Collection](#create-a-collection)
19
+
-[Update a Collection](#update-a-collection)
19
20
-[Publish a Collection](#publish-a-collection)
20
21
-[Datasets](#Datasets)
21
22
-[Datasets read use cases](#datasets-read-use-cases)
@@ -232,6 +233,34 @@ The above example creates the new collection in the `root` collection since no c
232
233
233
234
The use case returns a number, which is the identifier of the created collection.
234
235
236
+
#### Update a Collection
237
+
238
+
Updates an existing collection, given a collection identifier and a [CollectionDTO](../src/collections/domain/dtos/CollectionDTO.ts) including the updated collection data.
The `collectionIdOrAlias` is a generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId).
263
+
235
264
#### Publish a Collection
236
265
237
266
Publishes a Collection, given the collection identifier.
0 commit comments