Is your feature request related to a problem? Please describe.
When using Javers in projects backend by MongoDB, javers-mongo-repository module trying to create indexes on the collection. (via calling ensureSchema()). In our projects, the app-user usually do not have such permissions(create index) on database.
These internal used collections and indexes are considered to be created by Ops team.
Describe the solution you'd like
I would like to javers-mongo-repository module having option to configure schema management like javers-sql-repository module did
Describe alternatives you've considered
An alternative to create CustomMongoSchemaManager that extends MongoSchemaManager inject it into where used in library via reflection. But it is no so good option to consider.
Additional context
There is option to configure "enable schema management" in Javers SQL Repository module (see SqlRepositoryConfiguration.java).
Is your feature request related to a problem? Please describe.
When using Javers in projects backend by MongoDB, javers-mongo-repository module trying to create indexes on the collection. (via calling ensureSchema()). In our projects, the app-user usually do not have such permissions(create index) on database.
These internal used collections and indexes are considered to be created by Ops team.
Describe the solution you'd like
I would like to javers-mongo-repository module having option to configure schema management like javers-sql-repository module did
Describe alternatives you've considered
An alternative to create CustomMongoSchemaManager that extends MongoSchemaManager inject it into where used in library via reflection. But it is no so good option to consider.
Additional context
There is option to configure "enable schema management" in Javers SQL Repository module (see SqlRepositoryConfiguration.java).