Skip to content

Commit 41bca17

Browse files
authored
docs: update on querying blog collection docs (#3363)
1 parent 51327d3 commit 41bca17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/docs/3.files/1.markdown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Now we can query blog posts:
5858

5959
```ts
6060
// Get the foo post
61-
const fooPost = await queryCollection('blog').path('/foo').first()
61+
const fooPost = await queryCollection('blog').path('/blog/foo').first()
6262

6363
// Find all posts
6464
const allPosts = await queryCollection('blog').order('date', 'DESC').all()

0 commit comments

Comments
 (0)