Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to list all available content #3030

Open
Rednas83 opened this issue Jan 24, 2025 · 1 comment
Open

How to list all available content #3030

Rednas83 opened this issue Jan 24, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Rednas83
Copy link

Problem

Not able to get all the content in a collection or from multiple collections at once.

Possible solution

await queryCollection('blog') // Returns all the content from the blog collection
await queryCollection('') // Returns all the content spread over the different collections

Alternatives

Tried grabbing it from ssrContext but without succes
Image

Additional context

With V2 it was possible to do something like
await queryContent().find()

@Rednas83 Rednas83 added the enhancement New feature or request label Jan 24, 2025
@biroplane
Copy link

My question woul'd be similar.
How do i list all documents to create a full navigation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants