JoinCondition - gomeddo/js-sdk GitHub Wiki
Object that allows for filtering based on related records. Implements ConditionElement.
Example
const condition = new Condition('B25__Contact_Lookup__r.FirstName', Operator.EQUALS, 'GoMeddo')
const joinCondition = new JoinCondition('Id', Operator.IN, 'B25__ReservationContact__c', 'B25__Reservation_Lookup__c', condition)
Constructor
JoinCondition(fieldName, operator, sObjectType, referenceField, condition)
Parameters
fieldName
The field name of the field you want to filter by.operator
The operator you want to use has to be IN or NOT_IN. Of type Operator.sObjectType
The sObject type of the related sObject you want to use in this condition.referenceField
The field on the related sObject you want to use in the filter.condition
The condition to apply to the sub query to the related sObject.