🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@harshittpandey/mongodb-query-builder

Advanced tools

Socket logo

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

1.0.4
latest
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created

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

Package last updated on 17 Nov 2022

Did you know?

Socket

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