We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09ddf4f commit 5a300c8Copy full SHA for 5a300c8
src/classes/Entity.ts
@@ -801,7 +801,7 @@ class Entity<
801
&& (!mapping.link || (mapping.link && mapping.save === true))
802
) {
803
// If a number or a set and adding
804
- if (['number','set'].includes(mapping.type) && data[field].$add) {
+ if (['number','set'].includes(mapping.type) && (data[field].$add !== undefined && data[field].$add !== null)) {
805
ADD.push(`#${field} :${field}`)
806
values[`:${field}`] = validateType(mapping,field,data[field].$add)
807
// Add field to names
0 commit comments