Protected Optional _configTrait instance configuration.
Protected _globalWhether this is a global (not bound to any specific schema item) trait instance.
Protected Optional _typeTrait type.
Private baseProtected configPrivate graphqlProtected stepStatic schemaGraphQL mutation resolver to mark a message as read or unread.
Retrieves the status of a bulk operation.
A promise that resolves to an object representing the status of the bulk operation.
Throws an error if the JWT secret is not configured, if the JWT verification fails, or if there is an error retrieving the operation status.
The parent object. This is a standard parameter in GraphQL resolvers.
An object containing the arguments passed to the function.
Attaches Trait callbacks to schema item hooks.
Private loadLoad and validate the GraphQL mutation for a predefined bulk operation.
An Operation object representing loaded operation.
An Error if the operation cannot be loaded and validated.
The name of the predefined bulk operation to load.
Makes this Trait instance global.
This method is triggered when a trait callback has been activated
This is the name of the callback function to call.
References to the Graph Hanlder
Request data passed along as part of the request.
Configuration setter.
The new configuration.
Helper method for wrapping legacy Kosmos traits callbacks.
TODO: Remove this method once all Traits are converted.
Optional callbackName: stringOptional callback name; passing this parameter will additionally wrap the callback into legacy process().
Static traitGenerated using TypeDoc
Bulk Operation Trait adds global GraphQL interface interface for bulk operation usage Usage:
Provides global mutation
bulkOperationthat triggers related step machine