Skip to content

Commit df6303f

Browse files
authored
Update schema.js
1 parent 84ae600 commit df6303f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

schema.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ humanType = new gql.GraphQLObjectType({
160160
// https://docs.arangodb.com/Aql/GraphTraversals.html#working-on-collection-sets
161161
const species = args.species || null;
162162
return db._query(aqlQuery`
163-
WITH graphql_characters
163+
WITH ${characters}
164164
FOR friend IN ANY ${human} ${friends}
165165
FILTER !${species} || friend.$type == ${species}
166166
SORT friend._key ASC
@@ -178,7 +178,7 @@ humanType = new gql.GraphQLObjectType({
178178
// appear in a character), so we are only interested
179179
// in OUTBOUND edges.
180180
return db._query(aqlQuery`
181-
WITH graphql_characters
181+
WITH ${characters}
182182
FOR episode IN OUTBOUND ${human._id} ${appearsIn}
183183
SORT episode._key ASC
184184
RETURN episode
@@ -233,7 +233,7 @@ droidType = new gql.GraphQLObjectType({
233233
resolve(droid, args) {
234234
const species = args.species || null;
235235
return db._query(aqlQuery`
236-
WITH graphql_characters
236+
WITH ${characters}
237237
FOR friend IN ANY ${droid} ${friends}
238238
FILTER !${species} || friend.$type == ${species}
239239
SORT friend._key ASC

0 commit comments

Comments
 (0)