Hi Wan
I don’t get any error messages, just empty data and only 1 record.
Diver is go.mongodb.org/mongo-driver v1.3.3
This is a sample but I truncated it
{
"_id" : ObjectId("5ec0fc0be1bf7aa04ac28ddb"),
"provincename" : "Northern Cape",
"localmunicipalities" : [
{
"municipality" : "!Kheis Local",
"url" : "/overview/1181/kheis-local-municipality",
"municipalcities" : [
"Brandboom",
"Groblershoop"
]
},
{
"municipality" : "Dawid Kruiper Local",
"url" : "/overview/1245/dawid-kruiper-local-municipality",
"municipalcities" : [
"Mier",
"Rietfontein",
"Upington"
]
},
{
"municipality" : "Dikgatlong Local",
"url" : "/overview/1160/dikgatlong-local-municipality",
"municipalcities" : [
"Barkly West",
"Delportshoop",
"Windsorton"
]
},
{
"municipality" : "Emthanjeni Local",
"url" : "/overview/1173/emthanjeni-local-municipality",
"municipalcities" : [
"Britstown",
"De Aar",
"Hanover"
]
}
]
}
Want I would like to receive back from the query are all the names in the municipalcities array for a given provincename.
Hope that helps, if you require the full document I can send it to you.
This is a screenshot from Postman
Thanks for your help.
Steven