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',
      },
    },
  }),
};

@@ -131,22 +131,22 @@
     
-created_at_asc
+CREATED_AT_ASC
 : %7B%0A
@@ -193,23 +193,23 @@
     
-created_at_desc
+CREATED_AT_DESC
 : %7B%0A
@@ -257,20 +257,20 @@
     
-start_at_asc
+START_AT_ASC
 : %7B%0A
@@ -315,21 +315,21 @@
     
-start_at_desc
+START_AT_DESC
 : %7B%0A
@@ -375,16 +375,16 @@
     
-name_asc
+NAME_ASC
 : %7B%0A
@@ -425,17 +425,17 @@
     
-name_desc
+NAME_DESC
 : %7B%0A

Use uppercase for fair sort enum