package query import ( "go.mongodb.org/mongo-driver/bson/primitive" ) // Updater is a filter to update the data type Updater interface { Update() (update primitive.A) } // Update is a simple implementations of the Updater filter type Update primitive.M var _ Updater = &Update{} // Update returns an update command func (u Update) Update() (update primitive.A) { return primitive.A{primitive.M(u)} }