-
Notifications
You must be signed in to change notification settings - Fork 5
Update mode to support both react query and orm generation for codegen. Added header support in cli. #615
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
base: main
Are you sure you want to change the base?
Conversation
graphql/server/src/middleware/gql.ts
Outdated
| connection: true, | ||
| }, | ||
| schemasByApiSchemaApiIdAndSchemaId: { | ||
| schemataByApiSchemaApiIdAndSchemaId: { |
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.
this looks like the OLD naming!
ca0e2cf to
1bbf3ca
Compare
|
I have a few questions:
Was there a specific bug with fetch (SSL issues, proxy problems, Node version compatibility)? |
|
Was Host header override the specific issue you hit? Can you share the error or scenario? I need to know the exact scenario that's not working that you run into here. Plz provide some steps to reproduce |
As I showed back in the meeting |
b35ce1a to
3261c95
Compare
yyyyaaa
left a comment
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.
and also what's with the code changes for switching from .forEach into for() loops?
Is that intentional or AI hallucination?
packages/cli/src/commands/codegen.ts
Outdated
| : getEnvOptions(); | ||
| const schemasArg = (argv.schemas as string) || ''; | ||
|
|
||
| // Parse repeatable --header args into a headers object |
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.
this whole thing could be a separate function, hard to read like this imo
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.
It was just a lint issue, it keeps showing red line. So you prefer the old style?
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 moved headers logics into a function, also reformat the foreach to keep the original syntax while cast variable into any to avoid lint issue.
aa4536b to
9420656
Compare
No description provided.