Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 437 Bytes
package mongo
import (
"github.com/ungerik/go-start/mgo/bson"
)
///////////////////////////////////////////////////////////////////////////////
// filterInQuery
type filterInQuery struct {
filterQueryBase
selector string
values []interface{}
}
func (self *filterInQuery) bsonSelector() bson.M {
return bson.M{self.selector: bson.M{"$in": self.values}}
}
func (self *filterInQuery) Selector() string {
return self.selector
}
Something went wrong with that request. Please try again.