import gravity from '../lib/loaders/gravity';
import Artist from './artist';
import ArtistSorts from './sorts/artist_sorts';
import {
  GraphQLList,
  GraphQLInt,
  GraphQLID,
} from 'graphql';

const Artists = {
  type: new GraphQLList(Artist.type),
  description: 'A list of Artists',
  args: {
    size: {
      type: GraphQLInt,
    },
    sale_id: {
      type: GraphQLID,
    },
    sort: ArtistSorts,
    page: {
      type: GraphQLInt,
      defaultValue: 1,
    },
  },
  resolve: (root, options) => gravity('artists', options),
};

export default Artists;

@@ -160,21 +160,8 @@
 nt,%0A
-  GraphQLID,%0A
 %7D fr
@@ -324,53 +324,8 @@
  %7D,%0A
-    sale_id: %7B%0A      type: GraphQLID,%0A    %7D,%0A
     

revert sale id on artist option (#556)