Skip to content

Commit 514a8e0

Browse files
committed
Corrected addPossibleTypes for queries
1 parent d152c8c commit 514a8e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graphql-server/drivers/arangodb/driver.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,8 +1591,8 @@ function addPossibleTypes(query, schema, type, ctxt = null) {
15911591
query.push(collectionVar);
15921592
}
15931593
else {
1594-
let collection = asAQLVar(`db.${possible_types[i].name}`)
1595-
query.push(`${collection}`);
1594+
let collection = db.collection(possible_types[i].name)
1595+
query.push(aql`${collection}`);
15961596
}
15971597
}
15981598
} else {
@@ -1601,8 +1601,8 @@ function addPossibleTypes(query, schema, type, ctxt = null) {
16011601
query.push(collectionVar);
16021602
}
16031603
else {
1604-
let collection = asAQLVar(`db.${type.name}`);
1605-
query.push(`${collection}`);
1604+
let collection = db.collection(type.name);
1605+
query.push(aql`${collection}`);
16061606
}
16071607
}
16081608
}

0 commit comments

Comments
 (0)