import gravity from '../lib/loaders/gravity';
import BidderPosition from './bidder_position';
import {
  GraphQLList,
  GraphQLBoolean,
} from 'graphql';

const BidderPositions = {
  type: new GraphQLList(BidderPosition.type),
  description: 'A list of bidder positions',
  args: {
    me: {
      type: GraphQLBoolean,
    },
  },
  resolve: (root, options, { rootValue: { accessToken } }) => {
    return gravity.with(accessToken)('me/bidder_positions');
  },
};

export default BidderPositions;

@@ -115,26 +115,8 @@
 st,%0A
-  GraphQLBoolean,%0A
 %7D fr
@@ -251,68 +251,8 @@
 s',%0A
-  args: %7B%0A    me: %7B%0A      type: GraphQLBoolean,%0A    %7D,%0A  %7D,%0A
   re

remove me flag