0

So, im using nestjs to create a rest api and here is my schema

user.schema

repository.schema

commit.schema

as you can see i also set timestamps: true in repository.schema it work but when i set it on commit.schema the timestamps not generating the createdAt and updatedAt field

here is the result that i get

post result

i already google this one but still can't find the solution!

thanks in advance

Axselll
  • 1
  • 1
  • i tried add the createdAt and updatedAt field into my schema and it work, now i just wondering why the timestamps wont generated those field even if i set it to true – Axselll May 06 '22 at 15:39
  • Please provide enough code so others can better understand or reproduce the problem. – Community May 11 '22 at 04:02

0 Answers0