Filter files to parse based on file content #6711
Unanswered
diogolessa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there 👋🏻
I was wondering if it's possible to decide whether to parse a given file or not based on it's content. Idea is that, given the files:
We could be able to choose parsing only files of a given directive (say, only
DirectiveX
). I read the docs about creating custom document loader, pluckConfig and custom plugins. But it seems that:docString
as paremeter with the blob pattern instead of the file content, also I'm not sure if filtering files there would be possible (doc says it should return DocumentNode, not clear for me how it flows afterwards)I know there are some other possibilities to handle it but I just got curious about this approach.
Beta Was this translation helpful? Give feedback.
All reactions