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

2020-01-17 Thread afriyie . abraham
Hi, The problem wa about the index, i solved it by using the right index bson.M{"amfInfo.taiList.tac": args[2]} since the fuction is called Da.FindIp(targetNfType, sst, sd, tac) Thanks! On Thursday, January 16, 2020 at 5:04:40 PM UTC+2, Afriyie Abraham Kwabena wrote: > > Hi, > > I have been tr

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

2020-01-16 Thread burak serdar
On Thu, Jan 16, 2020 at 9:08 AM wrote: > > Hi, > > this is the JSON document in mongodb. > { > "sNssais": [{ > "sst": 0, > "sd": "string" > }], > "nsiList": [ > "string" > ], > "ipv4Addresses": [ > "198.51.100.1" > ], > "ipv6Addresses": [

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

2020-01-16 Thread afriyie . abraham
Hi, this is the JSON document in mongodb. { "sNssais": [{ "sst": 0, "sd": "string" }], "nsiList": [ "string" ], "ipv4Addresses": [ "198.51.100.1" ], "ipv6Addresses": [ "2001:db8:85a3::8a2e:370:7334" ], "amfInfo": {