diff --git a/server/connectors/api-connector-mongo/src/main/scala/com/prisma/api/connector/mongo/database/NodeActions.scala b/server/connectors/api-connector-mongo/src/main/scala/com/prisma/api/connector/mongo/database/NodeActions.scala index 61785b5f5a..5533ab150f 100644 --- a/server/connectors/api-connector-mongo/src/main/scala/com/prisma/api/connector/mongo/database/NodeActions.scala +++ b/server/connectors/api-connector-mongo/src/main/scala/com/prisma/api/connector/mongo/database/NodeActions.scala @@ -123,7 +123,7 @@ trait NodeActions extends NodeSingleQueries { case (_, _) => NodeAddress.forId(mutaction.model, id) } - val nonListArgsWithId = nonListValues :+ ("_id", id) + val nonListArgsWithId = nonListValues.filter(p => p._1 != mutaction.model.idField_!.dbName) :+ ("_id", id) val (nestedCreateFields, childResults) = embeddedNestedCreateDocsAndResults(mutaction, currentParent) val doc = Document(nonListArgsWithId ++ listValues ++ inlineRelations) ++ nestedCreateFields