diff options
| author | madelinegr <laura_wilson@brown.edu> | 2019-06-04 18:15:54 -0400 |
|---|---|---|
| committer | madelinegr <laura_wilson@brown.edu> | 2019-06-04 18:15:54 -0400 |
| commit | 4fd53320c87313c9add8f551154f8df3e2522b5f (patch) | |
| tree | 2ee56d028c68acb31ac683e79604ae70d0f94b15 /src/client/util | |
| parent | 2ef339e37182554a370afd0086322e79b80ac4f2 (diff) | |
end of day 6/4
Diffstat (limited to 'src/client/util')
| -rw-r--r-- | src/client/util/SearchUtil.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/util/SearchUtil.ts b/src/client/util/SearchUtil.ts index 28ec8ca14..27d27a3b8 100644 --- a/src/client/util/SearchUtil.ts +++ b/src/client/util/SearchUtil.ts @@ -23,4 +23,8 @@ export namespace SearchUtil { return Search(`proto_i:"${protoId}"`, true); // return Search(`{!join from=id to=proto_i}id:${protoId}`, true); } + + export async function GetViewsOfDocument(doc: Doc): Promise<Doc[]> { + return Search(`proto_i:"${doc[Id]}"`, true); + } }
\ No newline at end of file |
