import { GraphQLEnumType } from 'graphql';

export default {
  type: new GraphQLEnumType({
    name: 'FairSorts',
    values: {
      created_at_asc: {
        value: 'created_at',
      },
      created_at_desc: {
        value: '-created_at',
      },
      start_at_asc: {
        value: 'start_at',
      },
      start_at_desc: {
        value: '-start_at',
      },
      name_asc: {
        value: 'name',
      },
      name_desc: {
        value: '-name',
      },
    },
  }),
};

import { GraphQLEnumType } from 'graphql';

export default {
  type: new GraphQLEnumType({
    name: 'FairSorts',
    values: {
      CREATED_AT_ASC: {
        value: 'created_at',
      },
      CREATED_AT_DESC: {
        value: '-created_at',
      },
      START_AT_ASC: {
        value: 'start_at',
      },
      START_AT_DESC: {
        value: '-start_at',
      },
      NAME_ASC: {
        value: 'name',
      },
      NAME_DESC: {
        value: '-name',
      },
    },
  }),
};

Use uppercase for fair sort enum
Use uppercase for fair sort enum
