ChuckJonas / ts-force

A Salesforce REST Client written in Typescript for Typescript
88 stars 21 forks source link

null Relationships treated as empty RestObject #72

Closed ChuckJonas closed 3 years ago

ChuckJonas commented 5 years ago

If you run query with a parent relationship:

SELECT Owner.Id, Owner.Name FROM Account LIMIT 1

And that parent (Owner in this case) is null, ts-force will currently initialize an empty User RestObject.

Instead we should treat this as null!