# strapi-connector-mongodb-atlas

> MongoDB Atlas hook for the Strapi framework. Forked from the original Strapi mongoose hook to make it work with MongoDB Atlas. USE WITH CAUTION!

Latest version **3.6.10** (published 2022-07-23) · SEE LICENSE IN LICENSE license · 0 weekly downloads

## Install

```sh
npm install strapi-connector-mongodb-atlas
pnpm add strapi-connector-mongodb-atlas
yarn add strapi-connector-mongodb-atlas
bun add strapi-connector-mongodb-atlas
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.6.10 |
| Published | 2022-07-23 |
| First published | 2022-07-23 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.16.0 <=14.x.x |
| Dependencies | 8 |
| Unpacked size | 89.9 KB |
| Known vulnerabilities | 0 (+10 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Strapi team |
| Maintainers | gak4u |
| Keywords | mongodb, atlas, mongoose, hook, orm, nosql, strapi |

## Links

- npm: https://www.npmjs.com/package/strapi-connector-mongodb-atlas
- Repository: https://github.com/gak4u/strapi-connector-mongoose
- Homepage: https://strapi.io
- Issues: https://github.com/gak4u/strapi-connector-mongoose/issues
- npm.io page: https://npm.io/package/strapi-connector-mongodb-atlas

## Dependencies (8)

- [p-map](https://npm.io/package/p-map.md) 4.0.0
- [lodash](https://npm.io/package/lodash.md) 4.17.21
- [semver](https://npm.io/package/semver.md) ^7.3.5
- [mongoose](https://npm.io/package/mongoose.md) 6.0.5
- [pluralize](https://npm.io/package/pluralize.md) ^8.0.0
- [strapi-utils](https://npm.io/package/strapi-utils.md) 3.6.8
- [mongoose-long](https://npm.io/package/mongoose-long.md) ^0.3.2
- [mongoose-float](https://npm.io/package/mongoose-float.md) ^1.0.4

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 3.6.10 (latest) — 2022-07-23
- 3.6.9 — 2022-07-23
- 3.6.8 — 2022-07-23

## README

# strapi-connector-mongodb-atlas

MongoDB Atlas hook for the Strapi framework v3. Forked from the original Strapi mongoose hook to make it work with MongoDB Atlas.

**Note: USE WITH CAUTION!**

### This connector works with Strapi V3 only

## Setup guide

### Install npm package
```
npm install --save strapi-connector-mongodb-atlas
```

### Update config
/config/database.js
```
module.exports = ({ env }) => ({
  defaultConnection: 'default',
  connections: {
    default: {
      connector: 'mongoose',
      settings: {
        host: env('DATABASE_HOST', 'cluster-uri'),
        srv: env.bool('DATABASE_SRV', true),
        port: env.int('DATABASE_PORT', 27017),
        database: env('DATABASE_NAME', 'db_name'),
        username: env('DATABASE_USERNAME', 'db_user'),
        password: env('DATABASE_PASSWORD', 'db_pass'),
      },
      options: {
        authenticationDatabase: env('AUTHENTICATION_DATABASE', null),
        ssl: env.bool('DATABASE_SSL', true),
        useCreateIndex: false
      },
    },
  },
});
```

---
_Source: https://npm.io/package/strapi-connector-mongodb-atlas · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
