aws-node-mongodb-atlas code outdated
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- aws, javascript, mongodb, node.js
Research direction
Start with handler.js and serverless.yml, checking the mongodb 6.8.0 connection behavior, the MongoDB Atlas URL, and the configured Node.js runtime. Update the outdated settings and verify that the example no longer calls the removed connection method, uses a current Atlas URL, and targets a supported runtime.
Written by the indexing model from the issue text.
Description
handler.js uses client.isConnected(); this results in runtime error
I upgraded to current "mongodb" npm 6.8.0
According to research client.connect() is a no-op if already connected, so I just removed the client.isConnected() condition.
Also the MongoDB Atlas URL seems to be wrong today - at least it doesn't match mine. I just replaced it.
Last but not least, serverless.yml sets nodejs14x runtime, which is no longer supported.
I'm going to provide a PR with these minor fixes.
- Dominant language
- JavaScript
- Stars
- 11.5k
- Forks
- 4.4k
- Avg merge
- 2h 55m
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from serverless/examples
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
serverless/examples#404 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
serverless/examples#809 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
serverless/examples#784 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
serverless/examples#782 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
serverless/examples#773 ·
All issues in serverless/examples
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mksglu/context-mode#1200 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
neondatabase/website#5944 ·
-
module: core
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
bigbluebutton/bigbluebutton#25849 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
jaegertracing/jaeger-ui#4506 ·