docs say: “Every type has the DateTime fields crea...
# prisma-whats-new
j
docs say: “Every type has the DateTime fields createdAt and updatedAt that will be set automatically when a node is created or updated. You cannot change the values for these fields.” but when I add updatedAt to my schema type, it gets initially populated but does not update when I change a save an instance of the type.. Is this a known bug? UPDATE: When I change a string value it gets updated, but not when I change lists.
👍 1
d
That is a result of our current implementation of ListValues and RelationValues. They are stored in separate tables from scalar values and therefore the db does not automatically update the updatedAt value when you change lists or relations. You can circumvent that if you always also update a dummy scalar field.
We talked about it a bit more internally and we see the scalarList behavior as a bug that we will fix. You can follow this issue https://github.com/graphcool/prisma/issues/2053