Skip to content

Commit f53144f

Browse files
committed
chore: playground nested refs
1 parent 5d7a541 commit f53144f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: playground/src/pages/nested-refs-list.vue

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<script setup lang="ts">
2+
import { collection, doc, getDoc } from 'firebase/firestore'
3+
import { useCollection, useDocument } from 'vuefire'
4+
import { useFirestore } from '@/firebase'
5+
6+
const db = useFirestore()
7+
const nestedRefs = collection(db, 'playground/nested-refs/list')
8+
9+
const nestedList = useCollection(nestedRefs)
10+
</script>
11+
12+
<template>
13+
<p>List with nested refs</p>
14+
<pre>{{ nestedList }}</pre>
15+
</template>

0 commit comments

Comments
 (0)