Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 2fb9615210
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.524 kB
package mongo
import (
"github.com/ungerik/go-start/mgo/bson"
)
///////////////////////////////////////////////////////////////////////////////
// filterExistsQuery
type filterExistsQuery struct {
filterQueryBase
selector string
exists bool
}
func (self *filterExistsQuery) bsonSelector() bson.M {
return bson.M{self.selector: bson.M{"$exists": self.exists}}
}
func (self *filterExistsQuery) Selector() string {
return self.selector
}
//func (self *filterExistsQuery) Exists() bool {
// return self.exists
//}
Jump to Line
Something went wrong with that request. Please try again.