mongo
Package mongo provides a thin mongoose-like layer on the official driver. Node equivalent: mongoose, mongodb
import "github.com/sahilkhaire/gox/mongo"
Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.
Functions
| Symbol | Node.js | Kind | Summary |
|---|---|---|---|
| Eq | — | func | Eq matches equality on field. |
| Gt | — | func | Gt matches field > value. |
| In | — | func | In matches field in values. |
| Set | — | func | Set returns bson.M for $set updates. |
Types
| Symbol | Node.js | Kind | Summary |
|---|---|---|---|
| Client | — | type | Client wraps mongo.Client. |
| Collection | — | type | Collection wraps mongo.Collection with helper methods. |
| Database | — | type | Database wraps mongo.Database. |
Methods
| Symbol | Node.js | Kind | Summary |
|---|---|---|---|
| Client.Connect | mongoose.connect(uri) | method | Connect dials uri. |