Module warpgrapher::engine::events[][src]

This module provides types for event handlers. An event can be any occurrence during query processing to which a client library or application might want to add business logic. Examples include the before or after the creation of a new node.

Structs

EventFacade

Provides a simplified interface to utility operations inside an event handler.

EventHandlerBag

Collects event handlers for application during query processing.

Type Definitions

AfterNodeEventFunc

Type alias for a function called after an event affecting a node. The output of this function will be used as the input to the next after event function. If there are no additional after event functions, then the result of this function will be returned as the result for base Warpgrapher create, read, and update operations. For delete operations, the number of nodes deleted will be returned instead.

AfterRelEventFunc

Type alias for a function called after an event affecting a relationship. The output of this function will be used as the input to the next after event function. If there are no additional after event functions, then the result of this function will be returned as the result for base Warpgrapher create, read, and update operations. For delete operations, the number of relationships deleted will be returned instead.

BeforeMutationEventFunc

Type alias for a function called before a mutation event. The Value returned by this function will be used as the input to the next before event function, or to the base Warpgrapher resolver if there are no more before event functions.

BeforeQueryEventFunc

Type alias for a function called before an event. The Value returned by this function will be used as the input to the next before event function, or to the base Warpgrapher CRUD resolver if there are no more before event functions.