summaryrefslogtreecommitdiffstats
path: root/stepped-solutions/24/backend/src/resolvers/Query.js
blob: 821387e371e803af47b6b1e1714030e5f66534d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const { forwardTo } = require('prisma-binding');

const Query = {
  items: forwardTo('db'),
  item: forwardTo('db'),
  itemsConnection: forwardTo('db'),
  // async items(parent, args, ctx, info) {
  //   console.log('Getting Items!!');
  //   const items = await ctx.db.query.items();
  //   return items;
  // },
};

module.exports = Query;