Added products

This commit is contained in:
Niklas Fondberg
2021-04-07 16:06:55 +02:00
parent 949c641410
commit 59e385c144
6 changed files with 163 additions and 56 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
// (parent, args, ctx, info)
const products = {
products: (_, __, { dataSources }) => dataSources.productApi.getProducts(),
products: (_, args, { dataSources }) =>
dataSources.productApi.getProducts(args),
};
export default products;