Skip to content

Read codegen documents from user GraphQL config#1577

Merged
frandiox merged 8 commits intomainfrom
fd-codegen-docs
Dec 15, 2023
Merged

Read codegen documents from user GraphQL config#1577
frandiox merged 8 commits intomainfrom
fd-codegen-docs

Conversation

@frandiox
Copy link
Copy Markdown
Contributor

Changes codegen to first read documents array from the user's GraphQL config. This allows users to modify where we read queries from, which will be useful when adding CAAPI.

Also, the output for h2 codegen now shows the documents used for each generated file:

image

Copy link
Copy Markdown
Contributor

@michenly michenly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used test branch 1fcf43c
and everything looks good 👍

@frandiox frandiox merged commit 8c477cb into main Dec 15, 2023
@frandiox frandiox deleted the fd-codegen-docs branch December 15, 2023 18:12
juanpprieto pushed a commit that referenced this pull request Sep 17, 2025
* Get codegen documents from user config if available

* Update GraphQL config in skeleton to support changing document locations

* Changesets

* Changesets

* Show gql document globs in success banner after codegen

* Simplify document patterns in skeleton

* Changesets

* Refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants