Query typegen for non-root gatsby-* files
See original GitHub issueIssue Description
New issue to track conversation started in #44, regarding query type generation when gatsby-*
configuration files are located in a directory other than the project root.
Following is the conversation thread up to now.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Exported schemas in .ts files are not generated #50
Under 0.2.0 the following query: export const schema = graphql` query Posts { allMdx(s... ... Query typegen for non-root gatsby-* files #48 ...
Read more >GraphQL Typegen
Gatsby created a type generation file which you should see at src/gatsby-types.d.ts . It contains the TypeScript types for your queries.
Read more >How to workaround non existent types in Graphql query in ...
I'm having problems allowing an empty blog on my Gatsby site. When I run npm run develop it will only work if I...
Read more >Setting up a TypeScript and Gatsby project with GraphQL
The GraphQL query above queries for the site title, description, and author from the gatsby-config.js file. How to integrate TypeScript into a ...
Read more >Gatsby – GraphQL Code Generator
Community Plugins. Gatsby's GraphQL Typegen feature is solving most common use cases. If you find yourself limited by its features you should ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In theory, this plugin will start track of new queries when they are notified by the FileParser.
I’ll be doing some PoC soon.
Should, but I was hoping to not have to use
FileParser
ints-config
plugin, because that exceeds its scope. What would be great is if we could tell Gatsby where to pick up additional files and look for queries in them 🤔.