diff --git a/query-engine/query-structure/src/record.rs b/query-engine/query-structure/src/record.rs index e4c9faed8efa..15841d856ba7 100644 --- a/query-engine/query-structure/src/record.rs +++ b/query-engine/query-structure/src/record.rs @@ -49,7 +49,7 @@ impl ManyRecords { pub fn empty(selected_fields: &FieldSelection) -> Self { Self { records: Vec::new(), - field_names: selected_fields.prisma_names().collect(), + field_names: selected_fields.db_names().collect(), } }