Browse Source

+fix remove relation. TODO: invalidate related records

Ivan Asmer 4 years ago
parent
commit
6eb60f91d0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/front-models.js

+ 1 - 0
src/front-models.js

@@ -209,6 +209,7 @@ export default async function createModels2(gql, config={create: 'Upsert', updat
                             const otherType = inInputs(otherName)
                             if (otherType && this[name] && typeof this[name] === 'object')
                                 data[name] = (this[name]._id ? {_id: this[name]._id} : this[name])
+                            else data[name] = this[name]
                         }})[kind].call(this)
                     })
                     const gqlQuery = `