|
@@ -210,7 +210,7 @@ export default async function createModels2(gql, config={create: 'Upsert', updat
|
|
|
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.mutationData || otherEntity)))
|
|
|
+ data[name] = this[name].map(otherEntity => (otherEntity && otherEntity._id ? {_id: otherEntity._id} : (otherEntity || otherEntity)))
|
|
|
},
|
|
|
INPUT_OBJECT(){
|
|
|
const otherType = inInputs(otherName)
|