From ba69386f94a7ca4793a3064411a40f34ff276f34 Mon Sep 17 00:00:00 2001 From: Joshua Sangmeister Date: Tue, 19 May 2020 16:04:48 +0200 Subject: [PATCH] Change return type of getAll and filter --- docs/interfaces/datastore-service.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/interfaces/datastore-service.txt b/docs/interfaces/datastore-service.txt index c5053c013..ae7b7007a 100644 --- a/docs/interfaces/datastore-service.txt +++ b/docs/interfaces/datastore-service.txt @@ -198,9 +198,10 @@ Interface GetManyRequest { * browses the history. It should be noted that it is highly disencouraged to use this * method because it might return a huge amount of data. * + * @returns see get_many * @throws InvalidFormat */ -get_all(collection: Collection, mapped_fields?: Field[], get_deleted_models?: DeletedModelsBehaviour): Partial[]; +get_all(collection: Collection, mapped_fields?: Field[], get_deleted_models?: DeletedModelsBehaviour): Map>; /** * Returns all models of one collection that satisfy the filter condition. @@ -208,9 +209,10 @@ get_all(collection: Collection, mapped_fields?: Field[], get_deleted_models?: De * * This method does not take a position and can not be used when browsing the history. * + * @returns see get_many * @throws InvalidFormat */ -filter(collection: Collection, filter: Filter, mapped_fields?: Field[]): Partial[] +filter(collection: Collection, filter: Filter, mapped_fields?: Field[]): Map> /** * Url: POST to /internal/datastore/reader/exists