thenativeweb / cqrs-sample

CQRS, EventSourcing, (DDDD) Sample in node.js
148 stars 50 forks source link

on snapshot . mongodb gives some error #14

Closed pawarvijay closed 8 years ago

pawarvijay commented 8 years ago

:) I was trying to use snapshot functionality.Its not producing snapshots

configuration that is used for snapshot:

snapshotThreshold: 2, (snapshot after every 2 events)

1 : on debugging found error in file defultcommandhandler.js : line 370

MongoError key _general.undefined.56710bcd4507c0550bcc1149 must not contain '.'

2: then on further debugging found error here in file aggregateModel.js : line 62

this.get('_revisions')[streamInfo.context + '.' + streamInfo.aggregate + '.' + streamInfo.aggregateId] = rev;

Mongo stores key and values and keys should not contain '.' dott

am i missing some thing in configuration . . ?

adrai commented 8 years ago

i will get a look at it...

adrai commented 8 years ago

there was a but... sorry.... cqrs-domain v2.1.0

pawarvijay commented 8 years ago

Yesss , snapshots are working now :+1: