Standardising type definitions
This commit is contained in:
1 parent
0dce46d2cb
commit
ba58804ccb
5 files changed
+10
-10
No files matched your search
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
Reference in new issue
Block a user