feat: expose fetchedStr and firstSeenStr
This commit is contained in:
		
							parent
							
								
									5fdea80f8b
								
							
						
					
					
						commit
						9c162fab9d
					
				|  | @ -81,6 +81,11 @@ const QuestionShapeInterface = builder | ||||||
|           "Last timestamp at which metaforecast fetched the question", |           "Last timestamp at which metaforecast fetched the question", | ||||||
|         resolve: (parent) => parent.fetched, |         resolve: (parent) => parent.fetched, | ||||||
|       }), |       }), | ||||||
|  |       fetchedStr: t.string({ | ||||||
|  |         description: | ||||||
|  |           "Last timestamp at which metaforecast fetched the question, in ISO 8601 format", | ||||||
|  |         resolve: (parent) => parent.fetched.toISOString(), | ||||||
|  |       }), | ||||||
|       qualityIndicators: t.field({ |       qualityIndicators: t.field({ | ||||||
|         type: QualityIndicatorsObj, |         type: QualityIndicatorsObj, | ||||||
|         resolve: (parent) => |         resolve: (parent) => | ||||||
|  | @ -127,6 +132,11 @@ export const QuestionObj = builder.prismaObject("Question", { | ||||||
|       description: "First timestamp at which metaforecast fetched the question", |       description: "First timestamp at which metaforecast fetched the question", | ||||||
|       resolve: (parent) => parent.firstSeen, |       resolve: (parent) => parent.firstSeen, | ||||||
|     }), |     }), | ||||||
|  |     firstSeenStr: t.string({ | ||||||
|  |       description: | ||||||
|  |         "First timestamp at which metaforecast fetched the question, in ISO 8601 format", | ||||||
|  |       resolve: (parent) => parent.firstSeen.toISOString(), | ||||||
|  |     }), | ||||||
|     history: t.relation("history", { |     history: t.relation("history", { | ||||||
|       query: () => ({ |       query: () => ({ | ||||||
|         orderBy: { |         orderBy: { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user