BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
2 / 18 · Module 5 — Salesforce Data Model + SOQL · filtered: cheatsheet← prev⊞ allnext →

5.25Parent relationship on a custom lookup

Suppose:

Invoice__c

has:

Customer__c

which is a lookup.

When traversing relationship fields, you might see:

SELECT
    Id,
    Customer__r.Name
FROM Invoice__c

Again:

Customer__c

is the stored lookup field.

Customer__r

is relationship traversal.

That's a good pair to recognize.