import { IResolvers } from 'apollo-server-express'
//import { checkPermission } from '../user/resolvers'

export const resolvers: IResolvers = {
  Query: {
    // tournamentHistory: (parent, { id }, context, info) => {
    //   checkPermission(context, 'ADMIN')
    //   return context.db.query.histories(
    //     { where: { table: 'tournament', tableId: id } },
    //     info
    //   )
    // },
  },
  Mutation: {}
}
