
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
mongodb-mql-engines
Advanced tools
Exposes, on demand, engines used by the MongoDB IntelliJ Plugin for index suggestions.
Exposes, on demand, engines used by the MongoDB IntelliJ Plugin for index suggestions.
const mql = require('mongodb-mql-engines');
const sampleDocuments = [ { a: 1, b: 2 }, { a: 5, b: true } ]
const ns = mql.analyzeNamespace({ database: "mydb", collection: "mycoll" }, sampleDocuments)
const query = mql.parseQuery({ a: 1, b: 2 }, ns)
const index = await mql.suggestIndex([ query ])
console.log(index);
Expected output:
{ index: { a: 1, b: 1 }, coveredQueries: [ { a: 1, b: 2 } ] }
Creates a new namespace reference with the data distribution calculated from the sample documents. If no sample documents are provided, it won't use this information for suggesting indexes or running any other engine.
The more documents are provided as a sample, the better the index suggestion will be.
Parses a JSON query, defined as plain JSON or relaxed EJSON and attaches it to the provided namespace.
Analyses all the provided queries and returns the best index to cover all of them. In case only a single query is analysed, provide an array with that single query.
FAQs
Exposes, on demand, engines used by the MongoDB IntelliJ Plugin for index suggestions.
The npm package mongodb-mql-engines receives a total of 15,484 weekly downloads. As such, mongodb-mql-engines popularity was classified as popular.
We found that mongodb-mql-engines demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.