WIP
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user