Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

There is a slight difference between official document and source code. #194

@kunkka19xx

Description

@kunkka19xx

Hi ESDB team,
Thank you for the great works and detailed documents.
I am following the documentation to implement my service with esdb but I found that there is a slight difference between official document and source code.
Ref:
https://developers.eventstore.com/clients/grpc/appending-events.html#append-your-first-event

In the last example:

  1. I can not find the OriginalStreamRevision() method
aopts := esdb.AppendToStreamOptions{
    ExpectedRevision: lastEvent.OriginalStreamRevision(),
}

I got the error told me that:

lastEvent.OriginalStreamRevision undefined (type *esdb.ResolvedEvent has no field or method OriginalStreamRevision)

image

  • Now I don't know how to use/ find the StreamRevision of the lastEvent even checked the package source.
  1. And another tiny one is Json Type constant:

undefined: esdb.ContentTypeJson
But with this one I can easily find the alternative (esdb.JsonContentType)

  • I hope I can get the solution for the first one.
  • Or if my referred documentation was wrong or out of date, could you please provide me a right one.
    Thank you so much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions