-
Notifications
You must be signed in to change notification settings - Fork 1.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
[cli/docs]Add GitHub Loader TypeScript type, update usage docs #9332
Conversation
🦋 Changeset detectedLatest commit: 003e725 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
diff --git a/website/algolia-lockfile.json b/website/algolia-lockfile.json
index ed978e0b9..aa1a240da 100644
--- a/website/algolia-lockfile.json
+++ b/website/algolia-lockfile.json
@@ -533,7 +533,7 @@
"anchor": "custom-schema-loader"
}
],
- "content": "2741d5131dc2271008489e0448732efe",
+ "content": "e915dbb1de2cd152d6847b91fdb643c0",
"url": "https://www.the-guild.dev/graphql/codegen/docs/config-reference/schema-field",
"domain": "https://www.the-guild.dev/graphql/codegen",
"hierarchy": [ |
💻 Website PreviewThe latest changes are available as preview in: https://3ad03f6b.graphql-code-generator.pages.dev |
646309f
to
3b1b47a
Compare
@@ -183,6 +183,10 @@ export namespace Types { | |||
'apollo-engine': ApolloEngineOptions; | |||
} | |||
|
|||
export interface GitHubSchemaOptions { | |||
[githubProtocol: string]: { token: string }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github:${string}
Do you think this works better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that 👍 However, looks like the website
GH actions can only generate json schema for number
or string
index.
Example failed build: https://github.com/dotansimha/graphql-code-generator/actions/runs/4784244922/jobs/8505729237?pr=9332
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
699b68f
to
003e725
Compare
Description
This PR improves schema Github Loader doc and TypeScript usability:
Related: #9281
Type of change
Screenshots/Sandbox (if appropriate/relevant):
Preview of updated doc
Using token no longer triggers TS errors
How Has This Been Tested?
Test Environment:
Checklist: