Air5
  • About
  • Installation
  • Providers
  • Usage Examples
    • Mongo
    • Redis
    • LevelDB
    • RocksDB
    • SQLite
    • NeDB
    • Enmap
    • PouchDB
    • AirDB
    • LowDB
    • YAML
    • JSON
    • TSON
    • JSON5
    • CSON
    • BSON
    • FLAT
    • CSV
    • Memory
  • Creating Providers
  • Complete Examples
Powered by GitBook
On this page

Was this helpful?

  1. Usage Examples

Mongo

Installation

npm i air5@latest --save

npm i air5-mongo@latest --save

Usage

Make Sure To Provide The Correct URI

const Air5 = require('air5')

const database = new Air5('example-name', {
    provider: 'mongo',
    uri: 'mongodb://'
})

There Is A Free Public Server Running At mongodb+srv://public:public@air5-cluster.fkmud.mongodb.net/public-data

PreviousUsage ExamplesNextRedis

Last updated 4 years ago

Was this helpful?