Skip to content

Commit 62c93ae

Browse files
committed
docs: update 1.markdown.md
The `/foo` path query should not be able to return a result.
1 parent eb60ecb commit 62c93ae

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)