
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
graphql-mongo-fields
Advanced tools
Convert a GraphlQL fields in a MongoDB select string.
Consider the following query:
query {
foo {
bar {
foo
}
}
}
This module transforms the GraphQL fields into a string to select fields in MongoDB. The output will be:
'foo.bar.foo = 1'
const parseFields = require('graphql-mongo-fields')
// my awesome handler
const handler = async (_, args, context, info) => {
users = await models.User.find({}, parseFields(info))
return users
}
You can use docker to develop in this project. If you run the bin/run_dev
command you'll enter in a Docker container with the node:wheezy
image and volumes mounted in /opt/app
. Then is just start to coding :)
Don't forget to put the tests in the test/
folder and run typing npm run test
.
Feel free to contribute ❤
FAQs
A graphql fields parser to use as mongo select()
The npm package graphql-mongo-fields receives a total of 87 weekly downloads. As such, graphql-mongo-fields popularity was classified as not popular.
We found that graphql-mongo-fields demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.