how can i add 2 new json fields to an already existing json to send with data: {} in a query?
r
Ryan
06/23/2021, 12:30 PM
@Halvor 👋
Currently you need to fetch the value first and then update. It would be great if you could add a 👍 to this request so that we can look into the priority for this.
h
Halvor
06/23/2021, 12:49 PM
you mean i have to rebuild the json beforehand?
Halvor
06/23/2021, 12:50 PM
I as not talking about json in the database but the json part of the "data" section of a prisma query.
r
Ryan
06/23/2021, 12:54 PM
I didn’t quite get your point. Could you show by an example?
h
Halvor
06/23/2021, 1:36 PM
i guess i can add to the json object passed to prisma's create() function beforehand.