title: Calling Apex Class from Lwc only it is getting Saved
body: <p>I have create one custom object. Using a LWC component, I try to create one record but when try to save it from apex, only ID is getting printed not the Name.
  I am not getting why only Id is getting printed not the name.</p>
  <p>Could anybody please help me ? Would be Appreciable.</p>
  <h2>LWC Component</h2>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import { LightningElement, track, api } from 'lwc';
  import { ShowToastEvent } from 'lightning/platformShowToastEvent';
  import insertDe from '@salesforce/apex/insertEvent.insertDe';
  import Detail_OBJECT from '@salesforce/schema/Detail__c';
  
  export default class insertEvent extends LightningElement {
    // @api childName;
    @track conRecord = Detail_OBJECT;
  
    handleChildNameChange(event) {
      this.conRecord.childName = event.target.value;
    }
  
    createRec() {
      insertDe({
          de: this.conRecord
      })
      .then(result =&gt; {
        // Clear the user enter values
        this.conRecord = {};
  
        // Show success messsage
        this.dispatchEvent(new ShowToastEvent({
          title: 'Success!!',
          message: 'Contact Created Successfully!!',
          variant: 'success'
        }), );
      })
      .catch(error =&gt; {
        this.error = error.message;
      });
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;template&gt;
    &lt;lightning-card title="Create Contact Record"&gt;
      &lt;template if:true={conRecord}&gt;
        &lt;div class="slds-m-around--xx-large"&gt;
          &lt;div class="container-fluid"&gt;
            &lt;div class="form-group"&gt;
              &lt;lightning-input 
                label="Child Name"
                name="childName"
                type="text"
                value={conRecord.childName}
                onchange={handleChildNameChange}
              &gt;&lt;/lightning-input&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;br /&gt;
          &lt;lightning-button label="Submit" onclick={createRec} variant="brand"&gt;&lt;/lightning-button&gt;
        &lt;/div&gt;
      &lt;/template&gt;
    &lt;/lightning-card&gt;
  &lt;/template&gt;</code></pre>
  </div>
  </div>
  </p>
  <h2>Apex code</h2>
  <pre class="lang-java prettyprint-override"><code>public with sharing class insertEvent {
    @AuraEnabled
    public static void insertDe(Detail__c de) {
      try {
        insert de;
      } catch (Exception e) {
        System.debug('---&gt;'+e);
      }
    }
  }
  </code></pre>