I am trying to fetch the data from my local MongoDB instance, but i see only empty json array when i navigate to: /api/nerds.
I have defined the sample Nerd collection in my local "stencil-dev" database as below. Is it correct ?
{
"_id" : ObjectId("5b965b3a15da33b567d9f794"),
"name" : "Tom"
}
Please clarify.
I am trying to fetch the data from my local MongoDB instance, but i see only empty json array when i navigate to: /api/nerds.
I have defined the sample Nerd collection in my local "stencil-dev" database as below. Is it correct ?
{
"_id" : ObjectId("5b965b3a15da33b567d9f794"),
"name" : "Tom"
}
Please clarify.