This commit is contained in:
Niklas Fondberg
2021-04-06 09:56:18 +02:00
parent a1280f4c0e
commit 4532fbc853
12 changed files with 5506 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
// (parent, args, ctx, info)
const orders = {
orders: (_, __, { dataSources }) => dataSources.orderApi.getOrders(),
order: (_, { id }, { dataSources }) => dataSources.orderApi.getOrder(id),
};
const resolvers = {
Query: { ...orders },
};
export default resolvers;