gqlgen v0.13.0 Release Notes

Release Date: 2020-09-21 // 6 months ago
  • ➕ Added

    • IsResolver added to FieldContext - #1316

    ⚡️ Updated

    • BC break: User errors returned from directives & resolvers are now consistently wrapped in gqlerror.Errors internally by the runtime, which has been updated to support go 1.13 unwrapping - #1312
      • Since #1115 was merged, errors from inputs have been wrapped, but didn't support unwrapping, leading to #1291
      • With all errors now wrapped before the error presenter is called, custom error presenters that use type assertions will be broken.
      • errors.As must instead be used to assert/convert error types in custom error presenters.
      • See the updated docs on customising the error presenter and the blog post on go 1.13 errors for more details.
    • ✏️ Typos & tweaks to docs - #1295, #1324

Previous changes from v0.12.2

  • 🛠 Fixed

    • 🛠 Fixed error during gqlgen init that was making starting a new project via the getting started guide impossible
    • 🛠 Fix for selecting fragments on different types with overlapping fields - #1280 thanks @JatinDevDG

    ⚡️ Updated

    • Avoid computing field path if not needed during field errors - #1288 thanks @alexsn