File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,10 @@ const Article = new GraphQLObjectType({
61
61
fields : ( ) => ( {
62
62
id : { type : new GraphQLNonNull ( GraphQLID ) } ,
63
63
text : { type : GraphQLString } ,
64
- createdAt : { type : new GraphQLNonNull ( GraphQLString ) } ,
64
+ createdAt : {
65
+ type : GraphQLString ,
66
+ description : 'May be null for legacy articles' ,
67
+ } ,
65
68
updatedAt : { type : GraphQLString } ,
66
69
status : { type : new GraphQLNonNull ( ReplyRequestStatusEnum ) } ,
67
70
references : { type : new GraphQLList ( ArticleReference ) } ,
Original file line number Diff line number Diff line change @@ -134,7 +134,10 @@ export default new GraphQLObjectType({
134
134
resolve : ( { status } ) => ( status === undefined ? 'NORMAL' : status ) ,
135
135
} ,
136
136
137
- createdAt : { type : new GraphQLNonNull ( GraphQLString ) } ,
137
+ createdAt : {
138
+ type : GraphQLString ,
139
+ description : 'May be null for legacy article-replies' ,
140
+ } ,
138
141
updatedAt : { type : GraphQLString } ,
139
142
} ) ,
140
143
} ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ const Reply = new GraphQLObjectType({
31
31
description : 'The user submitted this reply version' ,
32
32
resolve : userFieldResolver ,
33
33
} ,
34
- createdAt : { type : new GraphQLNonNull ( GraphQLString ) } ,
34
+ createdAt : {
35
+ type : GraphQLString ,
36
+ description : 'May be null for legacy replies' ,
37
+ } ,
35
38
text : { type : GraphQLString } ,
36
39
type : { type : new GraphQLNonNull ( ReplyTypeEnum ) } ,
37
40
reference : { type : GraphQLString } ,
You can’t perform that action at this time.
0 commit comments