Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ccde34a to
e1362a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new CLI command for importing GraphQL schemas from PostgreSQL databases, improves directive handling consistency throughout the codebase, and adds comprehensive examples and test schemas for JSON field support. It also includes minor adjustments to existing commands to support new parameters and improves maintainability by centralizing directive name usage.
New CLI command and schema import functionality:
importcommand (importCmdincmd/import.go) that allows users to introspect a PostgreSQL database and generate a GraphQL schema file, with options for schema name, tables, output file, and query/filter generation. This command is now registered in the CLI root. [1] [2]Directive handling improvements:
schemapackage for directives such asrelation,typename,table, andisInterfaceFilter, improving maintainability and reducing risk of typos. [1] [2] [3] [4] [5] [6]Schema and example enhancements:
examples/json/graph/schema.graphql) and a test schema (pkg/execution/builders/sql/testdata/schema_json.graphql) that demonstrate support for typed and dynamic JSON fields, including filter input types and relevant directives. [1] [2]Command improvements:
generateandinitcommands to accept an additional parameter for specifying the output server file name, improving flexibility in code generation. [1] [2]Documentation and agent configuration:
.claude/agents/golang-reviewer.mdfile describing an agent for reviewing Go code according to best practices and major Go style guides, including detailed review methodology and output format.