Skip to content

Commit

Permalink
Populate correct value for order items under order
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeNg93 committed Feb 24, 2019
1 parent ff4de20 commit 426cdda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions back-end/src/resolvers/Query.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const Query = {
order.shippingAddress = await prisma
.order({ id: order.id })
.shippingAddress();
order.items = await prisma.order({ id: order.id }).items();
}
user.shippingAddress = await prisma
.user({ id: ctx.request.userId })
Expand Down

0 comments on commit 426cdda

Please sign in to comment.