Create the projection with the specified name and code
Create the projection with the specified name and code
the name of the projection to create
the javascript code for the projection
the projection's mode (Either OneTime, Continuous or Transient)
indicates if the projection is allowed to emit new events.
Try to delete the projection with the specified name.
Try to delete the projection with the specified name. To delete a projection. It must be stopped first (see #stopProjection)
the name of the projection to stop
a future telling whether the action was done (@ProjectionDeleted) or if it was not able to do so (@UnableToDeleteProjection)
Fetch the details for the specified projection.
Fetch the details for the specified projection.
the name of the projection
the Projection details if it exist. None otherwise
Fetch the projection's result.
Fetch the projection's result. It only works for OneTime projections as Continuous one dont provide a result.
the name of the projection
the name of the partition
a String that should be either empty or a valid json object with the projection's result.
Fetch the projection's state
Fetch the projection's state
the name of the projection
the name of the partition
a String that should be either empty or a valid json object with the current state.
Start the projection with the specified name.
Start the projection with the specified name. Note that when eventstore responds to the command. It only acknowledges it. To know when it is started, you should use #waitForProjectionStatus
the name of the projection to start
a future completed when the request is completed.
Stop the projection with the specified name.
Stop the projection with the specified name. Note that when eventstore responds to the command. It only acknowledges it. To know when it is stopped, you should use #waitForProjectionStatus
the name of the projection to stop
a future completed when the request is completed.
A client allowing to create, get the status and delete an existing projection.