title: Not able to get last insert id of data in firebase
body: <p>I need help to get last insert id of the data, when i do insert record, I tried some code but it is not working for me, here i have added my code, can anyone please check my code and help me whats issue in it </p>
  
  <pre><code>const data = {
        //user_id: user_id,
        is_owner: 1,
        name: organization_name,
        website: website,
        industry: industry,
        viewing_permission: viewing_permission,
        plan: plan
      };
      const ref = db.ref("xpertz_organization/" + user_id);
      const organization_id = ref.push().key(); 
      ref.push().set(data);
  </code></pre>