Component.parent
| 
                   Property Description  | 
                
                   A reference to the parent query.Component object of this component. This property is set during the of Query.autoJoin(options) or Component.autoJoin(options).  | 
              
| 
                   Type  | 
                
                   string (read-only)  | 
              
| 
                   Module  | 
                |
| 
                   Parent Object  | 
                |
| 
                   Sibling Object Members  | 
                |
| 
                   Since  | 
                
                   2018.1  | 
              
Syntax
            Important: 
            
          The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/query Module Script Samples.
            // Add additional code
...
    var myCustomerQuery = query.create({
        type: query.Type.CUSTOMER
    });
    var mySalesRepJoin = myCustomerQuery.autoJoin({
        fieldId: 'salesrep'
    });
    var myDeptJoin = mySalesRepJoin.autoJoin({
        fieldId: 'department'
    });
    var theParent = myDeptJoin.parent;
...
// Add additional code