intermine / intermine/intermine-registry

Update Mongoose API Methods currently used for Database Queries

Open
#149 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Most of the Mongoose API methods such as `find()`, `remove()` which are currently used inside of the Registry's route handlers are deprecated, as shown in the terminal when some of the endpoints are being called:

![dep](https://user-images.githubusercontent.com/37256767/74250306-6a82e480-4d10-11ea-811a-a2bead01b613.png)

We can use the newer methods available in the latest version of Mongoose API such as `findOne()`, `findOneAndDelete()`, `insertMany()` and so on.

(More information on the latest API methods can be found [here](https://mongoosejs.com/docs/api/model.html))

I would like to work on this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.