Skip to content

Filtering in the filesystem routes #38270

Answered by LekoArts
NobbZ asked this question in Help
Discussion options

You must be logged in to vote

Yes, you're on the right path. The File System Route API doesn't allow filtering and as such if you want to split the content, you'll need to create individual interfaces for them.

Here's where the source check is happening: https://github.com/LekoArts/gatsby-themes/blob/main/themes/gatsby-theme-jodie-core/gatsby-node.mjs#L127-L130

You can take the whole https://github.com/LekoArts/gatsby-themes/blob/main/themes/gatsby-theme-jodie-core/gatsby-node.mjs file as an example on how to achieve what you want

Replies: 1 comment 1 reply

Comment options

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

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