Hello everyone. There is a need to add new attribu...
# orm-help
m
Hello everyone. There is a need to add new attributes to the json field. The only way to update a field is to get it first, update it in the code, and then set it back? Or are there more customizable ways out of the box in prisma?
I want to do it transactionally. But it impossible by this way
r
Currently yes, fetching and setting would be the way to go for now.
It would be great if you could add a ๐Ÿ‘ to this request so that we can look at the priority ๐Ÿ™‚
m
Done
I also have a question in the context of json fields. When I select them from the database, the prisma returns them to me in the JsonValue type, which I constantly have to cast in any. Which is inconvenient. Is it possible to somehow customize the interaction with the prisma so that it returns json values in the type that extends the Object? Thank you so much
r
You would need to explicitly cast it for now. Thereโ€™s a request for the same as well and a ๐Ÿ‘ would be super useful for us ๐Ÿ™‚
m
Ok, thanks!
๐Ÿ‘ 1