Skip to content

Commit c936d37

Browse files
authored
Merge pull request #2418 from fgrehm/patch-1
Add heads up about deferred schema initialization
2 parents 356d9d3 + 2046446 commit c936d37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

guides/schema/class_based_api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ In general, each `.define { ... }` block will be converted to a class.
4949

5050
See sections below for specific information about each schema definition class.
5151

52+
### ⚠️ Heads up ⚠️
53+
54+
Keep in mind that class based Schemas will be initialized at execution time instead of application boot, depending on the size of your schema, this could result in request timeouts for your users after your application restarts. For a workaround please check https://github.com/rmosolgo/graphql-ruby/issues/2034
55+
5256
### Type Instances
5357

5458
The previous `GraphQL::{X}Type` objects are still used under the hood. Each of the new `GraphQL::Schema::{X}` classes implements a few methods:

0 commit comments

Comments
 (0)