From 54054b8733236ba7b2f2fa47d84e085f7196e3f9 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Fri, 27 Sep 2024 10:02:47 +0100 Subject: [PATCH] docs(changeset): 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. --- .changeset/good-rocks-deny.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .changeset/good-rocks-deny.md diff --git a/.changeset/good-rocks-deny.md b/.changeset/good-rocks-deny.md new file mode 100644 index 000000000..e5998ae28 --- /dev/null +++ b/.changeset/good-rocks-deny.md @@ -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.