Skip to content
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

Add graphql schema aware field level hook to modelgen #1650

Merged
merged 4 commits into from
Oct 12, 2021

Commits on Oct 8, 2021

  1. Add ast aware field level hook to modelgen

    Currently, the only mechanism for extending the model generation is to use a BuildMutateHook at the end of the model generation process. This can be quite limiting as the hook only has scope of the model build and not the graphql schema which has been parsed.
    
    This change adds a hook at the end of the field creation process which provides access to the parsed graphql type definition and field definition. This allows for more flexibility for example adding additional tags to the model based off custom directives
    tprebs committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    10a9dea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6febf0 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2021

  1. Configuration menu
    Copy the full SHA
    45fa3ce View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2021

  1. Merge remote-tracking branch 'upstream/master'

    # Conflicts:
    #	plugin/modelgen/models.go
    tprebs committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    2a7c232 View commit details
    Browse the repository at this point in the history