File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ humanType = new gql.GraphQLObjectType({
160
160
// https://docs.arangodb.com/Aql/GraphTraversals.html#working-on-collection-sets
161
161
const species = args . species || null ;
162
162
return db . _query ( aqlQuery `
163
+ WITH graphql_characters
163
164
FOR friend IN ANY ${ human } ${ friends }
164
165
FILTER !${ species } || friend.$type == ${ species }
165
166
SORT friend._key ASC
@@ -177,6 +178,7 @@ humanType = new gql.GraphQLObjectType({
177
178
// appear in a character), so we are only interested
178
179
// in OUTBOUND edges.
179
180
return db . _query ( aqlQuery `
181
+ WITH graphql_characters
180
182
FOR episode IN OUTBOUND ${ human . _id } ${ appearsIn }
181
183
SORT episode._key ASC
182
184
RETURN episode
@@ -231,6 +233,7 @@ droidType = new gql.GraphQLObjectType({
231
233
resolve ( droid , args ) {
232
234
const species = args . species || null ;
233
235
return db . _query ( aqlQuery `
236
+ WITH graphql_characters
234
237
FOR friend IN ANY ${ droid } ${ friends }
235
238
FILTER !${ species } || friend.$type == ${ species }
236
239
SORT friend._key ASC
You can’t perform that action at this time.
0 commit comments