question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Query typegen for non-root gatsby-* files

See original GitHub issue

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:open
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
cometkimcommented, Mar 9, 2020

In theory, this plugin will start track of new queries when they are notified by the FileParser.

I’ll be doing some PoC soon.

0reactions
Js-Brechtcommented, Mar 9, 2020

In theory, this plugin will start track of new queries when they are notified by the FileParser.

Should, but I was hoping to not have to use FileParser in ts-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 🤔.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found