KyleG
06/19/2018, 9:07 PMcreatedAt
and updatedAt
fields in a Prisma schema?
Like. I don't YET need it for my project, and I was thinking to myself "wow, if I do need this it's going to be a real embarrassment if I can't get information as simple as the updated and created at times for a row!"
(nervous chuckling to self)Moritz
06/19/2018, 9:11 PMMoritz
06/19/2018, 9:12 PMKyleG
06/19/2018, 9:17 PMupdatedAt
or createdAt
values.
If it's not provided by Prisma's schema, how can my app get at it? AFAIK, if I can't see it in my database Playground, I cannot get it. 😱Moritz
06/19/2018, 9:22 PMtype Post {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
}
Then you can query them or expose them via yoga... Are we not on the same page? 🐿️KyleG
06/19/2018, 9:29 PMhttps://media.giphy.com/media/3oEduVMEWIc1bOE5Ww/giphy.gif▾
KyleG
06/19/2018, 9:30 PMcreatedAt
and updatedAt
into my datamodel.KyleG
06/19/2018, 9:31 PMMoritz
06/19/2018, 10:18 PM