diff --git a/src/schema/types/Condition.js b/src/schema/types/Condition.js index c22d2621e..6634a2df9 100644 --- a/src/schema/types/Condition.js +++ b/src/schema/types/Condition.js @@ -3,7 +3,7 @@ import { GraphQLString, } from 'graphql'; -const ConditionType = new GraphQLObjectType({ +const Type = new GraphQLObjectType({ name: 'Condition', description: 'Condition definition', fields: () => ({ @@ -12,4 +12,4 @@ const ConditionType = new GraphQLObjectType({ }), }); -export default ConditionType; +export default Type; diff --git a/src/schema/types/Phase.js b/src/schema/types/Phase.js index 09d80d700..851fa063f 100644 --- a/src/schema/types/Phase.js +++ b/src/schema/types/Phase.js @@ -7,7 +7,7 @@ import { SituationType, } from './index'; -const PhaseType = new GraphQLObjectType({ +const Type = new GraphQLObjectType({ name: 'Phase', code: 'Phase', description: 'Phase definition', @@ -22,4 +22,4 @@ const PhaseType = new GraphQLObjectType({ }), }); -export default PhaseType; +export default Type; diff --git a/src/schema/types/Situation.js b/src/schema/types/Situation.js index 1c73eb2f0..5b74f7f56 100644 --- a/src/schema/types/Situation.js +++ b/src/schema/types/Situation.js @@ -7,7 +7,7 @@ import { ConditionType, } from './index'; -const SituationType = new GraphQLObjectType({ +const Type = new GraphQLObjectType({ name: 'Situation', description: 'Situation definition', fields: () => ({ @@ -21,4 +21,4 @@ const SituationType = new GraphQLObjectType({ }), }); -export default SituationType; +export default Type; diff --git a/src/schema/types/Strategy.js b/src/schema/types/Strategy.js index d95ec3102..9ded76ca6 100644 --- a/src/schema/types/Strategy.js +++ b/src/schema/types/Strategy.js @@ -8,7 +8,7 @@ import { SubStrategyType, } from './index'; -const EventType = new GraphQLObjectType({ +const Type = new GraphQLObjectType({ name: 'Event', description: 'Everything you need to know about an event', fields: () => ({ @@ -23,4 +23,4 @@ const EventType = new GraphQLObjectType({ }), }); -export default EventType; +export default Type; diff --git a/src/schema/types/SubStrategy.js b/src/schema/types/SubStrategy.js index 2df444d5b..fc22691ca 100644 --- a/src/schema/types/SubStrategy.js +++ b/src/schema/types/SubStrategy.js @@ -8,7 +8,7 @@ import { PhaseType, } from './index'; -const SubStrategyType = new GraphQLObjectType({ +const Type = new GraphQLObjectType({ name: 'SubStrategy', description: 'SubStrategy composing a strategy', fields: () => ({ @@ -72,4 +72,4 @@ const SubStrategyType = new GraphQLObjectType({ }), }); -export default SubStrategyType; +export default Type;