func (u *Update) Set(obj types.M) *Update {
	u.update["$set"] = obj
	return u
}
Set the value of the provided fields in the document
package db
import (
	"context"
	"github.com/spaceuptech/space-api-go/config"
	"github.com/spaceuptech/space-api-go/types"
)
type Update struct {
	op           string
	find, update types.M
	config       *config.Config
	meta         *types.Meta
}
func initUpdate(db, col, op string, config *config.Config) *Update {
	meta := &types.Meta{Col: col, DbType: db, Project: config.Project, Token: config.Token, Operation: types.Update}
	f := make(types.M)
	u := make(types.M)
	return &Update{op, f, u, config, meta}
}
func (u *Update) Where(conds ...types.M) *Update {
	if len(conds) == 1 {
		u.find = types.GenerateFind(conds[0])
	} else {
		u.find = types.GenerateFind(types.And(conds...))
	}
	return u
}