Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

feedhenry-templates/fh-connector-mongodb-cloud

Repository files navigation

FeedHenry MongoDB Connector

Dependency Status

The FeedHenry MongoDB Connector. For more information on MongoDB see: https://github.com/mongodb/node-mongodb-native.

Group MongoDB Connector API

Insert into MongoDB

Insert a document into a MongoDB Collection

Endpoint /cloud/mongodb
HTTP Method POST

Request (application/json)

Body
{
  "collection": "my_collection",
  "insert": {"foo": "bar"}
}

Response 200 (application/json)

Body
{
  "ok": "true"
}

Tests

All the tests are in the "test/" directory. The cloud app is using mocha as the test runner.

Unit tests

npm run unit

or

npm run test

Unit coverage

npm run coverage