-
This is the codeThis is the databaseThis is the response when I tried to get request on
|
Beta Was this translation helpful? Give feedback.
Answered by
Uzlopak
May 28, 2022
Replies: 1 comment 1 reply
-
probably articleschema does not contain name and then mongoose filters on findOne the name field and then it is just returning the first document in the collection. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
aroyan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
probably articleschema does not contain name and then mongoose filters on findOne the name field and then it is just returning the first document in the collection.