-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[1.0] Scan for graphl queries in locations other than src. #1280
Comments
The problem: Right now the relay compiler scans for grapqhl queries and fragments for all js files in "src" as well as any page component, unfortunately if a plugin is exposing it's own components or the user is putting components in another directory they are never compiled and added to graphql. |
I'd prefer to make the graphql compiler programatically accept paths via the bound actions api, in the same way you'd |
This would be great too I think — the problem is it doesn't solve the use case of someone wanting to install a Gatsby-specific component that has an included GraphQL fragment. Unless we treat these components as plugins basically and make people add them to their gatsby-config.js |
This PR added support for plugins including fragments #2320 (comment) |
Carried over from discussion here: product-os/landr#25
The text was updated successfully, but these errors were encountered: