update

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package update is the main package for go-update-mongo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateDocument

func UpdateDocument(document, updateDoc bson.D) (bson.D, error)

UpdateDocument updates the provided bson.D document using the passed updateDoc. it returns that new document.

The passed updateDoc must conform to the mongodb Update Operator spec https://www.mongodb.com/docs/manual/reference/operator/update/

Under the hood, this uses FerretDB to update the document.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL