package
1.4.0
Repository: https://github.com/youngagency/mongo-wrapper.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
FieldCompare return a bson document to use as MongoDB query filter.
FieldIn returns a bson to document to use as MongoDB query filter Documents which field value is contained in vals will be returned.
FieldNotIn returns a bson to document to use as MongoDB query filter Documents which field value is not contained in vals will be returned.
FieldRange return a bson document rapresenting query by range on given fields from and to may be included in results.
MergeDocuments returns a new document which contains all given documents fields Duplicated fields are not handled.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Page set batch size and correct skip on given options Use for paginated requests.
No description provided by the author
Pull returns a bson document with the pull operation.
Sort set options sort with given sort struct.
Update returns a bson Document rapresenting the update to perform.

# Structs

Builder struct allows to build a mongodb query filter.
FindOptions is a wrapper around options.FindOptions.
No description provided by the author
PullStruct is used to represent pull in MongoDB.
SortStruct is used to represent sort in MongoDB.
UpdateBuilder struct permits to create a mongodb update.