:raw? - (default: false) a boolean which controls whether the return
signature should be a simple :ok | {:error, any()} or
{:ok, AppendResp.t()} | {:error, any()}. This can be used to extract
metadata and information from the append response which is not available
through the simplified return API, such as the stream's revision number
after writing the events.
Context
The docs for
Spear.append
state the followingIssue
With that opts set it still returns
:ok
Thus, cannot use the feature to determine append response stream positions, etc.
Tracking down to the code:
https://github.com/NFIBrokerage/spear/blob/a08dfa90d210ded99dbe5dbcbc9e0fc0f3af0996/lib/spear.ex#L386
Stream append has the case function:
That always masks the response by only returning
:ok
.