File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,23 +13,23 @@ A minimal, yet powerful library that puts realtime Firebase data into Svelte sto
13
13
14
14
<p>Howdy, {user.uid}</p>
15
15
16
- <!-- 3. 📜 Get a Firestore document owned by a user -->
16
+ <!-- 3 (a) . 📜 Get a Firestore document owned by a user -->
17
17
<Doc ref={`posts/${user.uid}`} let:data={post} let:ref={postRef}>
18
18
19
19
<h2>{post.title}</h2>
20
20
21
- <!-- 4. 💬 Get all the comments in its subcollection -->
21
+ <!-- 4 (a) . 💬 Get all the comments in its subcollection -->
22
22
<Collection ref={postRef.path + '/comments'} let:data={comments}>
23
23
{#each comments as comment}
24
24
25
25
{/each}
26
26
27
- <!-- 3. 📜 Get a Realtime Database node owned by a user -->
27
+ <!-- 3 (b) . 📜 Get a Realtime Database node owned by a user -->
28
28
<Node path={`posts/${user.uid}`} let:data={post} let:ref={postRef}>
29
29
30
30
<h2>{post.title}</h2>
31
31
32
- <!-- 4. 💬 Get all the comments in its subnodes -->
32
+ <!-- 4 (b) . 💬 Get all the comments in its subnodes -->
33
33
<NodeList path={postRef.path + '/comments'} let:data={comments}>
34
34
{#each comments as comment}
35
35
You can’t perform that action at this time.
0 commit comments