Unable to update boolean entities
fasibio opened this issue · 1 comments
fasibio commented
Update{{Typename}} with set of a boolean not working...
Core code points :
db = db.Model(&obj).Where(sql, arguments...)
db = db.Updates(*update)
example Mutation:
updateCat(input: {filter: {id: {eq: 1}}, set: {name: "the value", alive:false}})
Values are correct :
update has an Object of structs with only name and alive
where clauses ist also corret
but only name will be updated
interest:
Activate Gorm debug will not show any sql log after db.Updates
... strange...
fasibio commented
https://stackoverflow.com/questions/56653423/gorm-doesnt-update-boolean-field-to-false we have to change patch merge to map