We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ecd3a9 + 017cc4b commit 2356dc5Copy full SHA for 2356dc5
resolvers/itemResolver.js
@@ -108,6 +108,11 @@ module.exports = {
108
if (data.bsgCategoryId) return context.data.item.getTopCategory(data.bsgCategoryId);
109
return null;
110
},
111
+ categories(data, args, context) {
112
+ return data.categories.map(id => {
113
+ return context.data.item.getCategory(id);
114
+ });
115
+ },
116
usedInTasks(data, args, context) {
117
return context.data.task.getTasksRequiringItem(data.id);
118
schema.js
@@ -216,6 +216,7 @@ type Item {
216
containsItems: [ContainedItem]
217
category: ItemCategory
218
categoryTop: ItemCategory
219
+ categories: [ItemCategory]!
220
bsgCategoryId: String
221
weight: Float
222
velocity: Float
0 commit comments