Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGoExtBsonRegistry ¶
func FixTextSearchPipeline ¶ added in v0.0.116
FixTextSearchPipeline moves {$match:{$text:{$search}}} entries to the front of the pipeline (otherwise its an mongo error)
func ProjectionFromStruct ¶ added in v0.0.116
ProjectionFromStruct automatically generated a mongodb projection for a struct This way you can pretty much always write `options.FindOne().SetProjection(mongoutils.ProjectionFromStruct(...your_model...))` to only get the data from mongodb that you will actually use in the later decode step
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.