Why mongoose and not just mongodb library? (document models?)
An API should always provide OpenAPI schema, how can you add it to this project? If you have models, it should be straight forward...
Yes. I went with mongoose because of the abstraction it provides to define schema and make queries.
About the OpenAPI schema, I think that there are swagger packages for Nodejs you can use to document your API. I haven't try it yet.
Let me know if you have some suggestions
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why mongoose and not just mongodb library? (document models?)
An API should always provide OpenAPI schema, how can you add it to this project? If you have models, it should be straight forward...
Yes. I went with mongoose because of the abstraction it provides to define schema and make queries.
About the OpenAPI schema, I think that there are swagger packages for Nodejs you can use to document your API. I haven't try it yet.
Let me know if you have some suggestions