0.0.5 • Published 8 months ago
@juananpe/snippet-hint-command v0.0.5
Hint Command Snippet
This snippet adds a hint
command to mongosh that provides helpful suggestions or recommendations for MongoDB-related tasks. The query results are generated using Groq API.
Prerequisites
export GROQ_API_KEY=gsk_XXXXXXX
Usage
After installing the snippet, you can use the hint
command in your MongoDB shell like this:
hint("very briefly, just the command, do not use markdown: in mongosh how to get the collections names of current db?");
This will output a possible solution to your query, such as db.getCollectionNames()
.
Installation
You can install this snippet using the snippet
command in mongosh:
snippet install hint-command
License
This snippet is licensed under the Apache-2.0 license.