com.walmartlabs.lacinia.pedestal.interceptors

added in 0.13.0

Common interceptors between the standard and subscriptions code paths.

inject-app-context-interceptor

deprecated in 0.14.0

(inject-app-context-interceptor app-context)

Adds a :lacinia-app-context key to the request, used when executing the query.

The provided app-context map is augmented with the request map, as key :request.

It is not uncommon to replace this interceptor with one that constructs the application context dynamically; for example, to extract authentication information from the request and expose that as app-context keys.

Deprecated. Use the versions in com.walmartlabs.lacinia.pedestal2 or com.walmartlabs.lacinia.pedestal.subscriptions.