Skip to content

Commit ff37d50

Browse files
committed
add TODO to revisit hardcoded id field names in ImportExport
1 parent f2ac499 commit ff37d50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/servers/api/src/main/scala/com/prisma/api/import_export/BulkImport.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class BulkImport(project: Project)(implicit apiDependencies: ApiDependencies) {
8181
ImportList(ImportIdentifier(typeName, id), field, gcValue)
8282
}
8383

84+
// TODO: do4gr should think about whether Import/Export works with custom names for id fields. I think it does but that should be validated.
8485
def parseIdGCValue(input: JsObject, model: Model): IdGCValue = model.idField_!.typeIdentifier match {
8586
case TypeIdentifier.UUID => UuidGCValue.parse_!(input.value("id").as[String])
8687
case TypeIdentifier.Cuid => StringIdGCValue(input.value("id").as[String])

0 commit comments

Comments
 (0)