Closed AhmedX6 closed 5 years ago
Hi @AhmedX6
Can you put together a runnable example? I don't believe we've made any significant changes to Pipe
compared to the original mgo.
Dom
Hi @AhmedX6 I think the reason that you got empty array is because the $match command that you want to match is wrong value can you try with match": bson.M{"pointer": ObjectId("5c26844696b72e4b6c9ceee6")}}
Thanks @l2eady!
@AhmedX6, did the solution proposed work? If so, we'll close this issue.
Thanks! Esther
Hello,
No it did not work I used an other library sorry for late response you can close this issue.
Thanks, Ahmed
Sorry to hear, thanks for your response!
it is this problem have a soluation? i still have this problem, pipe all return empty array
@eminano @AhmedX6 which library did you use?
@heipacker I used https://godoc.org/gopkg.in/mgo.v2
What version of MongoDB are you using (
mongod --version
)?What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
I'm trying to retrieve a nested array ("messages") on a document in my collection, here is a json example of my collection
Here is my pipeline in golang :
When I execute it, got a empty array. What is the problem ? Thanks for help... This code was working using mgo of LABIX.
Can you reproduce the issue on the latest
development
branch?Yes