@@ -1577,10 +1577,7 @@ function addPossibleTypes(query, schema, type, ctxt = null) {
1577
1577
if ( graphql . isInterfaceType ( type ) ) {
1578
1578
let possible_types = schema . getPossibleTypes ( type ) ;
1579
1579
for ( let i in possible_types ) {
1580
- if ( i != 0 ) {
1581
- if ( use_aql ) query . push ( aql `,` ) ;
1582
- else query [ query . length - 1 ] += `,` ;
1583
- }
1580
+ if ( i != 0 ) query . push ( `,` ) ;
1584
1581
if ( ctxt !== null ) {
1585
1582
let collectionVar = asAQLVar ( getCollectionVar ( possible_types [ i ] . name , ctxt , true ) ) ;
1586
1583
query . push ( collectionVar ) ;
@@ -1615,10 +1612,7 @@ function addPossibleEdgeTypes(query, ctxt, schema, type_name, field_name) {
1615
1612
if ( graphql . isInterfaceType ( type ) ) {
1616
1613
let possible_types = schema . getPossibleTypes ( type ) ;
1617
1614
for ( let i in possible_types ) {
1618
- if ( i != 0 ) {
1619
- if ( use_aql ) query . push ( aql `,` ) ;
1620
- else query [ query . length - 1 ] += `,` ;
1621
- }
1615
+ if ( i != 0 ) query . push ( `,` ) ;
1622
1616
let collectionName = getEdgeCollectionName ( possible_types [ i ] . name , field_name ) ;
1623
1617
let collectionVar = asAQLVar ( getCollectionVar ( collectionName , ctxt , true ) ) ;
1624
1618
query . push ( collectionVar ) ;
0 commit comments