Automattic / Automattic/monk

cache database connection in module space

Open
#70 3 comments 0 reactions 0 assignees View on GitHub
discussion
Dominant language
JavaScript
Stars
1.8k
Forks
180
PR merge metrics
No merged PRs in 30d

Description

I like this future from mongoose as you do not need to handle dependency injection.

```
var monk = require('monk');

// connection still the same
monk('localhost/test');

// however this will return collection
monk.get('users');
```

What do you think?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue contains only a proposed module-level connection and collection API using monk and MongoDB; no files, tests, or entry points are named. Start by locating the connection and collection access APIs, then determine whether this design fits the project before defining tests and acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.