Skip to content

Commit c90c986

Browse files
committed
resolves issue #123
1 parent fa5cc37 commit c90c986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql-server/drivers/arangodb/driver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ function validateEdge(ctxt, source, sourceType, sourceField, target, targetType,
12491249
*/
12501250
function exists(ctxt, id, typeOrInterface, schema) {
12511251
let aqlCollectionVars = [];
1252-
if (graphql.isInterfaceType(typeOrInterface)) {
1252+
if (graphql.isInterfaceType(typeOrInterface) || graphql.isUnionType(typeOrInterface)) {
12531253
for (let possibleType of Object.values(schema.getPossibleTypes(typeOrInterface))) {
12541254
aqlCollectionVars.push(asAQLVar(getCollectionVar(possibleType.name)));
12551255
}

0 commit comments

Comments
 (0)