Skip to content

Commit

Permalink
docs(changeset): Fix bug where creating the build object also initial…
Browse files Browse the repository at this point in the history
…ized it; this is incorrect since if you just want the build object you don't necessarily want to register all of the GraphQL types (and potentially discover naming conflicts) at that moment. Introduced new `schemaBuilder.initBuild(schemaBuilder.createBuild(input))` API to explicitly handle initing if you need an initialized build object.
  • Loading branch information
benjie committed Sep 27, 2024
1 parent cde36fd commit 54054b8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .changeset/good-rocks-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"graphile-build": patch
---

Fix bug where creating the build object also initialized it; this is incorrect
since if you just want the build object you don't necessarily want to register
all of the GraphQL types (and potentially discover naming conflicts) at that
moment. Introduced new
`schemaBuilder.initBuild(schemaBuilder.createBuild(input))` API to explicitly
handle initing if you need an initialized build object.

0 comments on commit 54054b8

Please sign in to comment.