Hermes MySQL
    Preparing search index...

    Function fromInlineProjection

    • Loads the state of a stream from the document of a single-stream inline projection (state-stored), with the version of the stream it was updated at.

      A stream with events but without a document (e.g. the projection was added to a running application, and nothing was appended to the stream since) gets its state folded from its events through the projection, so the decider never decides on an empty state. The next append writes the document from all the events of the stream.

      The projection has to apply the same events as the evolve of the decider, e.g. .ofEvolve(decider.evolve).

      Type Parameters

      • State
      • E extends Event

      Parameters

      Returns StateLoader<State, Queryable>