Socket
Socket
Sign inDemoInstall

@harshittpandey/mongodb-query-builder

Package Overview
Dependencies
9
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @harshittpandey/mongodb-query-builder

[![npm version](https://badge.fury.io/js/@harshittpandey%2Fmongodb-query-builder.svg)](https://badge.fury.io/js/@harshittpandey%2Fmongodb-query-builder) # mongodb-query-builder


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

npm version

mongodb-query-builder

Getting started

Install mongodb-query-builder

npm install --save @harshittpandey/mongodb-query-builder

Import mongodb-query-builder in your App

import MongoQueryBuilder from "@harshittpandey/mongodb-query-builder"
components: {
   MongoQueryBuilder
}

Props

active: { // toggles the mongodb-query-builder (in fullscreen mode)
  type: Boolean
  default: true
}

connection: { // selects a connection strategy
  type: String,
  allowed_values: "API" or "DIRECT"
}
/*
"API" - expects connectionEndpoints.
"DIRECT" - WIP
*/

connectionEndpoints: {
  type: Object,
  allowed_values: ["getDatabaseList", "getCollections", "getSampleDocument", "getQueryResults"]
}
/*
getDatabaseList - async method that returns list of databases
getCollections(databaseName) - async method that returns list of collections for databaseName
getSampleDocument(databaseName, collectionName) - WIP
getQueryResults(databaseName, collectionName, query) - returns results for query(mongo-query)
*/

FAQs

Last updated on 17 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc