Mongo 2.0.0
A pure Fantom driver for MongoDB

Mongo is a pure Fantom driver for MongoDB.

Mongo driver features:

  • Compatible with MongoDB 3.6+
  • Developed against the MongoDB Stable API v1 (introduced in MongoDB 5.2+)
  • Support for Replica Set connection URLs
  • Pooled Connection Manager for multi-threaded use and automatic connection fail over
  • Pluggable authentication with a default SCRAM-SHA-1 over SASL implementation

Mongo API features:

  • Standard CRUD commands: insert(), find(), update(), replace(), and delete()
  • Special commands: count(), aggregate(), findAndUpdate(), findAndDelete()
  • Index support commands: create(), ensure() and drop()
  • Large query cursor support
  • Text indexes and text searching
  • Simplified Query DSL syntax

    ALIEN-AID: See Morphia for a complete Fantom to MongoDB object mapping library!



To install Mongo with Fantom Pod Manager, cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install Mongo with the Fantom Repository Manager (fanr), cut'n'paste the following into a cmd prompt, terminal or shell:

Or to install manually, download the pod file and copy it to the %FAN_HOME%/lib/fan/ directory.

afMongo.pod (111.33 kB)


To use Mongo in a Fantom project, add a dependency to the project's

depends = ["sys 1.0", ..., "afMongo 2.0.0 - 2.0"]



Meta information on the Mongo pod:

Published by
Steve Eynon
Fantom-Factory Ltd
Pod file size
111.33 kB
Built on
27th Apr 2022
Source code
via Git at
Depends on
afBson, afConcurrent, concurrent, inet, sys, util
Referenced by
afMorphia, afMorphiaIoc
Javascript Compatible

Dependency Graph

  Use mouse to re-position pods

Release History

There have been 17 releases of Mongo: