Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) MongoDB (w/ mongoose) Event Store Implentation #126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alex-laycalvert
Copy link
Contributor

Work in progress PR for an EventStore implementation for mongodb.

I am utilizing mongoose to assist in the model definition but this is only as a wrapper for the actual mongodb driver. If we don't want to use mongoose I can look at removing it's usage.

Another thing that might need to change is using number for the default stream version instead of a bigint. I only did this to make dealing with the version checking easier. In this impl., the stream version is determined by the number of events which is an array field on the document representing each event stream and that .length field is always a number type.

@oskardudycz looking forward on working on this one with you and getting this in once it's fully ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant