Skip to content

Commit

Permalink
🐛 Fix parent relationship resolution (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesuRule authored Oct 29, 2024
1 parent 769370b commit 552c91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion force-app/repository/Query.cls
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public virtual class Query {
Schema.DescribeFieldResult parentFieldDescribe = parentFields[index].getDescribe();
builtUpFieldName += index == parentFields.size() - 1
? parentFieldDescribe.getName()
: parentFieldDescribe.getRelationshipName() + '.';
: parentFieldDescribe.getRelationshipName() ?? parentFieldDescribe.getName().replace('__c', '__r') + '.';
}
return builtUpFieldName;
}
Expand Down

0 comments on commit 552c91c

Please sign in to comment.