Replies: 1 comment
-
Are you talking about client side join? (I'm not good at English so cannot totally understand what you said...) If yes, I use the child component to use <!-- PostList.vue -->
<template>
<PostListItem v-for="post in posts" :key="post.id" :user-ref="post.userRef" />
</template>
<script setup lang="ts">
const posts = useFirestore(collection(db, "posts"))
</script> <!-- PostListItem.vue -->
<template>
<div>{{ user }}</div>
</template>
<script setup lang="ts">
const user = useFirestore(props.userRef)
</script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys i need help with
useFirestore
addon,Let's say i have a data collection named
authors
and other collection namedbooks
wherebook
doc hasauthorId
, I'm retriewing data as below. How can i get the books byid
returned by author collecton on eachauthor
document?Just trying to find if there is a way to retriew it reactively which i missed.
Beta Was this translation helpful? Give feedback.
All reactions