title: Set UID as Node Value in Firebase Realtime Database in Angular
body: <p>I am using FIrebase Realtime Database and Angular 9 for my project.</p>
  <p>Below is the current structure of my Firebase DB.</p>
  <pre><code>clients
      -M8bGQaBM...
         email:&quot;test@test.com&quot;
         uid:&quot;5gvR....&quot;
  </code></pre>
  <p>I want to push the <strong>uid</strong> (i.e. &quot;5gvR....&quot;) in place of the push id (i.e. &quot;-M8bGQaBM...&quot;).</p>
  <p>Below is the service.ts file. Here, data.uid stores the uid.</p>
  <pre><code>import { Injectable } from &quot;@angular/core&quot;;
  import { AngularFireDatabase, AngularFireList } from &quot;@angular/fire/database&quot;;
  
  import * as moment from &quot;moment&quot;;
  import { User } from &quot;../models/user&quot;;
  
  @Injectable()
  export class UserService {
    selectedUser: User = new User();
    users: AngularFireList&lt;User&gt;;
  
    constructor(private db: AngularFireDatabase) {
      this.getUsers();
    }
  
    getUsers() {
      this.users = this.db.list(&quot;clients&quot;);
      return this.users;
    }
  
    getUserById(id: string) {}
  
    createUser(data: any) {
      data.location = this.location;
      data.createdOn = moment(new Date()).format(&quot;X&quot;);
      data.isAdmin = false;
      this.users.push(data);
    }
  }
  </code></pre>
  <p>Please let me know what changes I need to make in the above service.ts file in order to achieve this.</p>