saintedlama / mongoose-version

Mongoose plugin to save document data versions. Documents are saved to a "versioned" document collection before saving original documents and kept for later use.
BSD 2-Clause "Simplified" License
144 stars 35 forks source link

Is this a correct behavior? #33

Open mateusbadalotti opened 6 years ago

mateusbadalotti commented 6 years ago

image

When following the code examples i'm getting this error, is this a expected behavior or there is a bug?

yitomok commented 6 years ago

@mateusbadalotti You should set the collection option if you would versioning for more than one schemas. For example: configsSchema.plugin(versioner, { collection: 'configs_versions' })

mateusbadalotti commented 6 years ago

Thanks @yitomok ! Appreciate your attention.