|
@@ -208,9 +208,8 @@ export default async function createModels2(gql, config={create: 'Upsert', updat
|
|
|
if (this[name]) data[name] = this[name]
|
|
|
},
|
|
|
LIST(){
|
|
|
- const otherType = inInputs(ofType.name)
|
|
|
- if (otherType && this[name] && this[name] instanceof Array)
|
|
|
- data[name] = this[name].map(otherEntity => (otherEntity && otherEntity._id ? {_id: otherEntity._id} : (otherEntity || otherEntity)))
|
|
|
+ if (this[name] instanceof Array)
|
|
|
+ data[name] = this[name].map(otherEntity => (otherEntity && otherEntity._id ? {_id: otherEntity._id} : (otherEntity && otherEntity.mutationData || otherEntity)))
|
|
|
},
|
|
|
INPUT_OBJECT(){
|
|
|
const otherType = inInputs(otherName)
|