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
EqfuncEq matches equality on field.
GtfuncGt matches field > value.
InfuncIn matches field in values.
SetfuncSet returns bson.M for $set updates.

Types

SymbolNode.jsKindSummary
ClienttypeClient wraps mongo.Client.
CollectiontypeCollection wraps mongo.Collection with helper methods.
DatabasetypeDatabase wraps mongo.Database.

Methods

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

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