Skip to content

Commit

Permalink
Merge pull request #5204 from lukes/patch-1
Browse files Browse the repository at this point in the history
Fix definition.md copy from autoload to eager load
  • Loading branch information
rmosolgo authored Jan 9, 2025
2 parents c4714ad + bb00aa1 commit 542ce7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/schema/definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Additionally, {{ "Schema.resolve_type" | api_doc }} is called by GraphQL-Ruby to
## Production Considerations

- __Parser caching__: if your application parses GraphQL _files_ (queries or schema definition), it may benefit from enabling {{ "GraphQL::Parser::Cache" | api_doc }}.
- __Eager loading the library__: by default, GraphQL-Ruby autoloads its constants as-needed. In production, they should be autoloaded instead, using `GraphQL.eager_load!`.
- __Eager loading the library__: by default, GraphQL-Ruby autoloads its constants as-needed. In production, they should be eager loaded instead, using `GraphQL.eager_load!`.

- Rails: enabled automatically. (ActiveSupport calls `.eager_load!`.)
- Sinatra: add `configure(:production) { GraphQL.eager_load! }` to your application file.
Expand Down

0 comments on commit 542ce7b

Please sign in to comment.