mongoapiconnect

1.0.3 • Public • Published

MongoDb API Connect

Fast n Easy Connection with MongoDb .

Introduction

This package helps you in connection with the MongoDb without using any connector like mongoose Now creating db is as easy as using fetch() or XmlHttprequest .Remove the hassel of writing long codes as package will handle it automatically .

How to Use ?

Create a Mongodb Atlas account and login in .

Create a Project and set the IP address to 0.0.0.0 , So that it can be access from anywhere.

Create a cluster in the Project .

Create a user and write down thw username , password and the connection URL so that it can be used later .

that's it you are good to go...

Body of the Request


{
  "data": [
    {
      "field_1": "value_1",
      "field_2": "value_2"
    },
    {
      "field_1": "value_1",
      "field_2": "value_2"
    },
    {
      "field_1": "value_1",
      "field_2": "value_2"
    }
  ],
  "url": "<Your Mongodb Connection Url to the Cluster Created on the Mongodb Atlas>",
  "model": "<Name of the db>",
  "schema": {
    "field_1": "Data Type supported with the MongoDb",
    "field_2": "Data Type supported with the MongoDb"
  }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i mongoapiconnect

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

3.65 kB

Total Files

4

Last publish

Collaborators

  • shubham15gupta09