ID not passed to INSERT
pruthvikar opened this issue · 0 comments
pruthvikar commented
The ID is removed in this code
// Remove ID from the query data to avoid constraint violation error
var data = query.data
data.removeValue(forKey: .some(E.idKey))
It is not inserted into the query again before returning. This causes all queries to fail due to the non-null constraint.