# MongoDB OSDU core library A MongoDB implementation of basic functionality for OSDU applications. The library itself creates the necessary collections and indexes. So just need to import helpers and provide database connection properties. List of services supported: * Storage * Legal * [...TBD...] # How to import into service - Import this artifact to your application's `pom.xml`: ``` org.opengroup.osdu.core.mongodb os-core-lib-mongodb 0.1.1 ``` - Add following to your `application.properties` file: ``` osdu.mongodb.enabled.storage=true # to enable storage helpers osdu.mongodb.enabled.legal=true # to enable legal helpers osdu.mongodb.database=[your_database_name] osdu.mongodb.uri=[connection url to MongoDB Atlas cluster or any MongoDB instance/replica (no matter on-premice or cloud)] ``` # Support for current services: ### Storage application For the following repositories we have the following helper beans: - `SchemaHelper` for the `ISchemaRepository` - `RecordHelper` for the `IRecordsMetadataRepository` - `QueryHelper` for the `IQueryRepository` All the beans for now have all the necessary methods to implement the corresponding repositories. ### Legal application There is `LegalHelper` for `ILegalTagRepository`. #### [...TBD...]