This is a late reply. NestJS has found a better way around this problem. It uses the graphql-scalars package which can handle converting numbers to timestamps by default without having to write a custom scalar.
Ref: https://the-guild.dev/graphql/scalars/docs/scalars/date