decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
414 stars 130 forks source link

Mongo not supported as a data store out of the box? #1335

Open jukeboxhero123 opened 5 months ago

jukeboxhero123 commented 5 months ago

Bug severity 2

Describe the bug Doesn't seem to be support for mongodb as a data store out of the box. More specifically the migrations in the @veramo/data-store does not run successfully due to mongo having the property of being schema-less.

To Reproduce Steps to reproduce the behaviour:

  1. Follow steps in Veramo docs to bootstrap an agent: https://veramo.io/docs/node_tutorials/node_setup_identifiers/.
  2. Replace sqlite with mongo in the type ORM DataSource object initialization.
  3. Running the migrations on startup fails.

Observed behaviour Migrations fail due to mongoDB's schema-less nature.

Expected behaviour Migrations to run properly or have migrations specific to MongoDB.

Details

Screen Shot 2024-01-31 at 9 50 08 AM Screen Shot 2024-01-31 at 9 48 19 AM

Versions (please complete the following information):

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.