Say you wanted to call the createdAt
resolver from the updatedAt
resolver. For example this doesn't work:
{
Review: {
createdAt: review => review._id.getTimestamp(),
updatedAt: review => review.updatedAt || this.createdAt(review)
},
}
I realize I could make a reviewCreatedAt()
function that is called from both, but I'm looking for a way to call the createdAt
resolver.