Skip to content

Commit a488396

Browse files
committed
allow multiple types of task items
1 parent bd3c4aa commit a488396

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

resolvers/taskResolver.js

+3
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ module.exports = {
204204
item(data, args, context) {
205205
return context.data.item.getItem(context, data.item);
206206
},
207+
items(data, args, context) {
208+
return data.items.map(id => context.data.item.getItem(context, id));
209+
},
207210
maps(data, args, context) {
208211
return data.map_ids.map(id => {
209212
return context.data.map.get(context, id);

schema.js

+1
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,7 @@ type TaskObjectiveItem implements TaskObjective {
10611061
maps: [Map]!
10621062
optional: Boolean!
10631063
item: Item!
1064+
items: [Item]!
10641065
count: Int!
10651066
foundInRaid: Boolean!
10661067
dogTagLevel: Int

0 commit comments

Comments
 (0)