Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: 99designs/gqlgen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.17.27
Choose a base ref
...
head repository: 99designs/gqlgen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.17.28
Choose a head ref
  • 8 commits
  • 33 files changed
  • 6 contributors

Commits on Mar 20, 2023

  1. Configuration menu
    Copy the full SHA
    a3400ff View commit details
    Browse the repository at this point in the history
  2. Add Changelog entry for v0.17.27

    Signed-off-by: Steve Coffman <steve@khanacademy.org>
    StevenACoffman committed Mar 20, 2023
    Configuration menu
    Copy the full SHA
    65ec8b5 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. Allow setting headers in HTTP transports (#2590)

    Currently gqlgen sets Content-Type header to 'application/json'. There's
    no easy way to change it or add additional headers.
    
    This commit adds struct variable ResponseHeaders that can hold any
    headers you want to be returned with response. It is standard
    `map[string][]string` variable.
    
    If user does not set this map, we default to the Content-Type
    header with 'application/json' value - nothing will be changed
    for existing users.
    
    Usage:
    
    as simple as:
    
    ```
    headers := map[string][]string{
        "Content-Type": {"application/json; charset: utf8"},
        "Other-Header": {"dummy-post-header","another-value"},
    }
    
    h.AddTransport(transport.POST{ResponseHeaders: headers})
    ```
    
    Added tests in transport/headers_test.go.
    RatkoR authored Mar 24, 2023
    Configuration menu
    Copy the full SHA
    677d854 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. feat: removeDuplicateTags() validates tags and panic with meaningful …

    …error message (#2597)
    
    Co-authored-by: kerry <kerry@oscer.ai>
    gitxiongpan and kerry authored Mar 28, 2023
    Configuration menu
    Copy the full SHA
    6da735c View commit details
    Browse the repository at this point in the history
  2. EntityResolver input type fix (#2594)

    * EntityResolver input type fix
    
    fixes #2326 - when using `@entityResolver(multi: true)` the InputType of
    the entity resolver may be in a different package (usually `model`).
    The fix is to pull the types.Type of the resolver input, and use
    templates.CurrentImports.LookupType in order to render it correctly
    (possibly adding another import)
    
    * entityResolver input type fix: update tests
    
    change testdata/entityresolver/gqlgen.yml to use a dedicated package for
    the model (as in the default sample yml), and run go generate.
    
    before the input type fix, generation fails with errors like -
    plugin/federation/testdata/entityresolver/generated/federation.go:338:17:
      undeclared name: MultiHelloByNamesInput
    plugin/federation/testdata/entityresolver/generated/federation.go:354:21:
      undeclared name: MultiHelloMultipleRequiresByNamesInput
    plugin/federation/testdata/entityresolver/generated/federation.go:362:17:
      undeclared name: MultiHelloMultipleRequiresByNamesInput
    erankor authored Mar 28, 2023
    Configuration menu
    Copy the full SHA
    db53479 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. Fix 2546: Relax external for object (#2599)

    Signed-off-by: Steve Coffman <steve@khanacademy.org>
    StevenACoffman authored Mar 29, 2023
    Configuration menu
    Copy the full SHA
    9a644c5 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2023

  1. Re-generate after #2599 (#2601)

    Signed-off-by: Steve Coffman <steve@khanacademy.org>
    StevenACoffman authored Mar 30, 2023
    Configuration menu
    Copy the full SHA
    a1a6f23 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2023

  1. release v0.17.28

    StevenACoffman committed Apr 3, 2023
    Configuration menu
    Copy the full SHA
    f2b3465 View commit details
    Browse the repository at this point in the history
Loading