Skip to content
This repository was archived by the owner on Aug 29, 2020. It is now read-only.

Commit c8d57b1

Browse files
committedMay 14, 2020
Merge branch 'add-workspace-info-to-related-objects-query' into develop
2 parents f2532f3 + d8d8a57 commit c8d57b1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎stored_queries/ws/ws_fetch_related_data.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ query: |
2525
RETURN t
2626
)
2727
// Fetch the parent unversioned object
28-
LET parent = (
28+
LET parent = FIRST(
2929
FOR parent IN 1 OUTBOUND v ws_version_of
3030
LIMIT 1
3131
RETURN parent
3232
)
3333
// Fetch the workspace for this object
34-
LET ws = (
34+
LET ws = FIRST(
3535
FOR ws IN 1 INBOUND parent ws_workspace_contains_obj
3636
LIMIT 1
3737
RETURN ws
@@ -52,13 +52,13 @@ query: |
5252
RETURN t
5353
)
5454
// Fetch the parent unversioned object
55-
LET parent = (
55+
LET parent = FIRST(
5656
FOR parent IN 1 OUTBOUND v ws_version_of
5757
LIMIT 1
5858
RETURN parent
5959
)
6060
// Fetch the workspace for this object
61-
LET ws = (
61+
LET ws = FIRST(
6262
FOR ws IN 1 INBOUND parent ws_workspace_contains_obj
6363
LIMIT 1
6464
RETURN ws
@@ -79,13 +79,13 @@ query: |
7979
RETURN t
8080
)
8181
// Fetch the parent unversioned object
82-
LET parent = (
82+
LET parent = FIRST(
8383
FOR parent IN 1 OUTBOUND v ws_version_of
8484
LIMIT 1
8585
RETURN parent
8686
)
8787
// Fetch the workspace for this object
88-
LET ws = (
88+
LET ws = FIRST(
8989
FOR ws IN 1 INBOUND parent ws_workspace_contains_obj
9090
LIMIT 1
9191
RETURN ws

0 commit comments

Comments
 (0)
This repository has been archived.