Skip to content
Discussion options

You must be logged in to vote

Hey @unonweb

I would go with your second option but I think you're thinking about this a bit incorrectly.

I can query for the collection data but I don't know where to save it.

The collection data is saved in the separate collection. I think you're trying to duplicate it or similar, which would not be a good idea.

Here's a use case that we come up against a lot.

Say you're building a Next site on a layout-builder mentality, and you have a few blocks. One is Archive or similar that allows a user to choose a collection to render an archive for, and then the frontend component should output the most recent 10 posts in the collection that was selected.

The way we'd do this would be either…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@unonweb
Comment options

Answer selected by zubricks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants