Skip to content
Node: mongoose8 APIs

mongo

Package mongo provides a thin mongoose-like layer on the official driver. Node equivalent: mongoose, mongodb

import "github.com/sahilkhaire/gox/mongo"
## API reference

Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.

Functions ​

SymbolNode.jsKindSummary
Eq—funcEq matches equality on field.
Gt—funcGt matches field > value.
In—funcIn matches field in values.
Set—funcSet returns bson.M for $set updates.

Types ​

SymbolNode.jsKindSummary
Client—typeClient wraps mongo.Client.
Collection—typeCollection wraps mongo.Collection with helper methods.
Database—typeDatabase wraps mongo.Database.

Methods ​

SymbolNode.jsKindSummary
Client.Connectmongoose.connect(uri)methodConnect dials uri.

MIT Licensed · Built for Node.js developers moving to Go