adding epoch function and making date a number
This commit is contained in:
1 parent
039bca1571
commit
d4690f3295
4 files changed
+11
-7
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
GraphQLNonNull,
|
||||
GraphQLInt,
|
||||
GraphQLString
|
||||
} from 'graphql'
|
||||
import { CompetitionType } from '../types'
|
||||
@@ -9,8 +10,8 @@ import { slugify } from '../../utils/functions'
|
||||
const args = {
|
||||
displayName: { type: new GraphQLNonNull(GraphQLString) },
|
||||
description: { type: new GraphQLNonNull(GraphQLString) },
|
||||
startDatetime: { type: new GraphQLNonNull(GraphQLString) },
|
||||
finishDatetime: { type: new GraphQLNonNull(GraphQLString) },
|
||||
startDatetime: { type: new GraphQLNonNull(GraphQLInt) },
|
||||
finishDatetime: { type: new GraphQLNonNull(GraphQLInt) },
|
||||
formula: { type: new GraphQLNonNull(GraphQLString) }
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
GraphQLObjectType,
|
||||
GraphQLInt,
|
||||
GraphQLString,
|
||||
GraphQLList,
|
||||
GraphQLID
|
||||
@@ -18,8 +19,8 @@ const CompetitionType = new GraphQLObjectType({
|
||||
displayName: { type: GraphQLString },
|
||||
host: { type: GraphQLString },
|
||||
description: { type: GraphQLString },
|
||||
startDatetime: { type: GraphQLString },
|
||||
finishDatetime: { type: GraphQLString },
|
||||
startDatetime: { type: GraphQLInt },
|
||||
finishDatetime: { type: GraphQLInt },
|
||||
formula: { type: GraphQLString },
|
||||
plotter: {
|
||||
type: PlotterType,
|
||||
|
||||
Reference in new issue
Block a user