• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Khan / gqlgen
0%

Build:
DEFAULT BRANCH: master
Repo Added 27 Mar 2020 05:05PM UTC
Token JdJAjLon8YSmbbnf3HCAK24KLJZczBIef regen
Build 62 Last
Files 0
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • benkraft.config
  • benkraft.federation
  • benkraft.mod-tidy-stdout
  • cleanup-federation-generated
  • entity-resolver-more-tests
  • entity-resolver-tests
  • extern-only
  • federation-tests
  • ka-federation-patches
  • ka-patches
  • master
  • miguel.multiget
  • multiget
  • val-undef

15 Aug 2026 03:28AM UTC coverage: 0.0% (-75.0%) from 75.01%
32185492991

push

github

web-flow
fix: batch resolver parent registration (#4281)

* fix: batch resolvers for value slice parents

* chore: refresh generated batch resolver fixtures

* graphql: add helpers for batch parent handling

Generated code recovered batch parents itself: it looked up the group,
type-asserted the parents, read the parent index off the path, and derived
the field's response key from the alias. Four concerns, emitted inline into
every batch field of every generated file.

Move them behind BatchParentsFor and BatchParents.FieldResult, and add
WithBatchParentValues for the case where the marshaler holds a []T rather
than a []*T and has to take the address of each element.

Nothing existing changes signature, so code generated by an older gqlgen
still compiles against this runtime.

* codegen: track batch resolver fields per type

HasBatchResolverFields answers a schema-wide question: does anything,
anywhere, use a batch resolver. Marshalers need a narrower one, namely
whether this type does, so add HasBatchFields and BatchImplementors.

The set is computed once and cached rather than populated in BuildData,
because plugins may add fields after the data is built and templates render
after every plugin has run.

Per-schema builds under the follow-schema layout hold only the objects
declared in their own file, so addBuild propagates the schema-wide set the
same way it already propagates AllDirectives. Without that an interface
whose implementors live in different schema files would only see the ones
sharing its file.

* codegen: register batch parents only where they are used

Three problems in the slice marshaler, all in the same guard.

A []T field stored the values themselves as batch parents, but resolvers
take []*T, so the generated type assertion failed and every parent fell
back to a single-parent call. Use WithBatchParentValues for that case.

$type.Elem.Definition follows through list wrappers, so [[Thing!]!]!
reported Thing's kind and the outer list register... (continued)

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Relevant lines Covered
Build:
Build:
0 RELEVANT LINES 0 COVERED LINES
0.0 HITS PER LINE
Source Files on master
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
32185492991 master fix: batch resolver parent registration (#4281) * fix: batch resolvers for value slice parents * chore: refresh generated batch resolver fixtures * graphql: add helpers for batch parent handling Generated code recovered batch parents itself: i... push 18 Aug 2026 09:05PM UTC web-flow github
0.0
1757691089 master Fix #1636 by updating gqlparser (#1857) push 27 Jan 2022 05:58PM UTC GitHub github
75.01
1688604675 master Avoid problems with `val` being undefined in the federation template. (#1760) push 12 Jan 2022 04:26PM UTC GitHub github
70.72
1688573884 val-undef Adding a test for verify that this fixes the issue. push 12 Jan 2022 04:19PM UTC MiguelCastillo github pending completion  
1685484331 val-undef run go generate to update moar generated files push 12 Jan 2022 01:29AM UTC Craig Silverstein github pending completion  
1685442889 val-undef run go generate to update generated files push 12 Jan 2022 01:16AM UTC Craig Silverstein github pending completion  
1685434088 val-undef Avoid problems with `val` being undefined in the federation template. push 12 Jan 2022 01:13AM UTC Craig Silverstein github pending completion  
1678313190 master Added pointer to a solution for `no Go files` err (#1747) push 10 Jan 2022 04:13PM UTC GitHub github
70.74
1462614448 master Cleaning up extra return in federation generated code (#1713) push 15 Nov 2021 02:30PM UTC GitHub github
67.64
1457058451 cleanup-federation-generated Cleaning up extra return in federation generated code push 13 Nov 2021 06:10PM UTC MiguelCastillo github
67.4
See All Builds (62)

Badge your Repo: gqlgen

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc