From d14dc1c7453f5a2eeba6c65a3d31bd4727d44d25 Mon Sep 17 00:00:00 2001 From: Ellen Kraffmiller Date: Tue, 29 Oct 2024 08:58:17 -0400 Subject: [PATCH] fix useCases.md comments --- docs/useCases.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/useCases.md b/docs/useCases.md index c36d9eb0..b49c56f7 100644 --- a/docs/useCases.md +++ b/docs/useCases.md @@ -228,7 +228,7 @@ createCollection.execute(collectionDTO).then((createdCollectionId: number) => { _See [use case](../src/collections/domain/useCases/CreateCollection.ts) implementation_. -The above example creates the new collection in the `:root` collection since no collection identifier is specified. If you want to create the collection in a different collection, you must add the collection identifier as a second parameter in the use case call. +The above example creates the new collection in the root collection since no collection identifier is specified. If you want to create the collection in a different collection, you must add the collection identifier as a second parameter in the use case call. The use case returns a number, which is the identifier of the created collection. @@ -513,7 +513,7 @@ createDataset.execute(datasetDTO).then((newDatasetIds: CreatedDatasetIdentifiers _See [use case](../src/datasets/domain/useCases/CreateDataset.ts) implementation_. -The above example creates the new dataset in the `:root` collection since no collection identifier is specified. If you want to create the dataset in a different collection, you must add the collection identifier as a second parameter in the use case call. +The above example creates the new dataset in the root collection since no collection identifier is specified. If you want to create the dataset in a different collection, you must add the collection identifier as a second parameter in the use case call. The use case returns a [CreatedDatasetIdentifiers](../src/datasets/domain/models/CreatedDatasetIdentifiers.ts) object, which includes the persistent and numeric identifiers of the created dataset.