New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated Getting-Started.md - added more detail making the process easier to understand #2352
Conversation
After hours of frustration and ironically reading Wow, that was fast I came up with this lol. I think this will get people up and running more quickly.
Update Getting-Started.md
Used more of the original example, added fastify-mongodb as per mcollina's suggestion. Simplified the db call to use findOne without arguments.
removed 'use strict' I had added previously on examples
removed commented about findOne()
@mcollina i've updated the examples to be more true to the original, added fastify-mongodb and a simpler call to the db. |
removed the text to suggest using fastify-mongodb and added fastify-mongodb to the install instruction on line 125. Also updated npm install to npm i to remain consistent with the previous example.
re-added comment about how fastify-plugin exposes the decorators etc...
Changed :id parameter to :name, with simple example to avoid all the ObjectId method confusion.
removed unnecessary await
(oops) replaced hard coded value to request.params.name
changed the parameter again. :name might be just as confusing as :id. Changed it to :animal.
Trying to save people a little time with an example to show all documents and a single document.
more meaningful checks and using await properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks @mcollina! My first PR. 😅 |
Co-authored-by: James Sumners <james@sumners.email>
Co-authored-by: James Sumners <james@sumners.email>
Co-authored-by: James Sumners <james@sumners.email>
Co-authored-by: James Sumners <james@sumners.email>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Good job and congrats for landing your first PR! |
Thanks and thank you for a great framework! |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Checklist
npm run test
andnpm run benchmark