Closed pb82 closed 7 years ago
LGTM. Some comments but excellent work. 👍
SonarQube analysis reported 8 issues:
Watch the comments in this conversation to review them. Note: the following issues could not be reported as comments because they are located on lines that are not displayed in this pull request:
Motivation
Extends the fh-db API with a MongoDB compatible layer on top of shared and dedicated databases. This API can be consumed by the new backend service for the databrowser and provides easy replaceability with the actual MongoDB driver as soon as we don't have to support shared dbs.
The API supports the exact MongoDB driver semantics, including promises and cursors. Naming conventions for shared dbs are adhered in all API calls. The following functions are implemented:
Advanced API for CRUD operations can be easily used for shared and dedicated dbs by using the
collection
function and running queries on collections:ping @wei-lee @rachael-oregan @sedroche