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",
|
||||
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({
|
||||
type: QualityIndicatorsObj,
|
||||
resolve: (parent) =>
|
||||
|
@ -127,6 +132,11 @@ export const QuestionObj = builder.prismaObject("Question", {
|
|||
description: "First timestamp at which metaforecast fetched the question",
|
||||
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", {
|
||||
query: () => ({
|
||||
orderBy: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user