Re: [go-nuts] How to query mongodb dynamically using Go interface

2020-01-16 Thread burak serdar
On Thu, Jan 16, 2020 at 8:03 AM wrote: > > Hi, > > I have been trying to create a dynamic mongodb query using golang interface > but the logical $or does not work. > It only return a documents when the input matches the bson.M{"sNssais.sst": > args[0].(int32), "sNssais.sd": args[1].(string)}. >

[go-nuts] How to query mongodb dynamically using Go interface

2020-01-16 Thread afriyie . abraham
Hi, I have been trying to create a dynamic mongodb query using golang interface but the logical $or does not work. It only return a documents when the input matches the bson.M{"sNssais.sst": args[0].(int32), "sNssais.sd": args[1].(string)}. other matches like bson.M{"amfInfo.taiList.tac": args},