triggers method is where you define the source group and the types the schema should process.
You can add multiple triggers to a schema.
Triggers example
TriggersContext object
TheTriggersContext object is passed into the triggers method and gives you access to a set of methods which is described below.
Methods
triggers
Defines the source group and the source entity types the schema should process.triggers(sourceGroupAlias, sourceEntityTypes)
Parameters
Examples
example of triggers usage
triggers can also be expressed as an arrow function expression to make it even more compact