//Subscription - structtype Subscription struct { Poller string `json:"poller"` AppName string `json:"appName"` Channels []string `json:"channels"` Users []string `json:"users"` Squelched string `json:"squelched"`}
var subs []Subscription
var userValue = "myuser"
query := bson.M{"users": bson.M{"$elemMatch": bson.M{"$in": userValue}}}
err := collection.Find(query).All(&subs)
--
You received this message because you are subscribed to the Google Groups "mgo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mgo-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.