Skip to content

Commit f68007f

Browse files
tweaked document connections query to workaround bug
1 parent cc3543a commit f68007f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/woql.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,12 +937,12 @@ WOQLQuery.prototype.documentProperties = function(id){
937937
WOQLQuery.prototype.getDocumentConnections = function(id){
938938
return this.and(
939939
WOQL.eq("v:Docid", id),
940-
WOQL.triple("v:Entid", "type", "v:Enttype"),
941-
WOQL.sub("v:Enttype", "tcs:Document"),
942940
WOQL.or(
943941
WOQL.triple(id, "v:Outgoing", "v:Entid"),
944942
WOQL.triple("v:Entid", "v:Incoming", id)
945943
),
944+
WOQL.triple("v:Entid", "type", "v:Enttype"),
945+
WOQL.sub("v:Enttype", "tcs:Document"),
946946
WOQL.opt().triple("v:Entid", "rdfs:label", "v:Label"),
947947
WOQL.opt().quad("v:Enttype", "rdfs:label", "v:Class_Label", "db:schema")
948948
);

0 commit comments

Comments
 (0)