Skip to content

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

@jukeboxhero123

Description

@jukeboxhero123

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):

  • @veramo/data-store: 5.6.0,
  • Node Version 18.17.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdata-storepinneddon't close this just for being staletriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions