[Vuejs]-Cant use firebase reference data type to get subcollection

0👍

Ok figured it out.

  this.getProfile
    .data()
    .clan.get()
    .then(snapshot => {
      console.log(snapshot.data());
    });

just .get() or whatever normal firebase operation you would do. The field with the reference is essentially the doc reference as well.

I am sure there is a better answer that explains why this works or the right terms but it works haha.

Leave a comment