Skip to main content


An interceptor is a function that Exograph executes before, after, or around matching queries and mutations. Interceptors are defined using the interceptor keyword. Exograph defers execution of an interceptor to the plugin, however, standardizing on annotations and the expressions supplied to them.

Here is an example of an interceptor that executes around any query:

module Timing {
@around("query *")
interceptor time(operation: Operation)

See the Deno interceptor for Deno module specifics.