README.md in rack-graphql-3.3.0.beta vs README.md in rack-graphql-3.3.0
- old
+ new
@@ -32,9 +32,10 @@
health_on_root_path: health_route, # optional, health_route value by default (mind map '/' is covering '/any/path-123')
root_path_app: YourDashboardApp, # optional
logger: A9n.logger, # optional, not set by default
error_status_code_map: { IamTeapotError => 418 }, # optional
re_raise_exceptions: true, # optional, false by default
+ request_epilogue: -> { ActiveRecord::Base.connection_handler.clear_active_connections! }
)
```
`context_handler` can be a class, object or proc. It must respond to `call` method taking `env` as an argument. It is supposed to decode or transform request properties to graphql context (eg. jwt token to user object, as shown on an example below).