Skip to content

Commit a830bf1

Browse files
committed
Bump version
1 parent 4c1b4e0 commit a830bf1

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This plugin enables you to query and visualize data from your MongoDB databases
1010

1111
#### Ordinary Query
1212

13-
![screenshot](/static/screenshot-4.png)
13+
![screenshot](/static/screenshot.gif)
1414

1515
#### Live Streaming
1616

@@ -19,7 +19,9 @@ This plugin enables you to query and visualize data from your MongoDB databases
1919
## Features
2020

2121
- **Flexible Querying:** Query data using MongoDB's aggregation pipeline syntax in JSON or JavaScript. Support query variables & annotation queries to create rich dynamic dashboards.
22-
- **Time Series & Table Data:** Visualize time-based data or display results in tabular format for various Grafana panels.
22+
- **Time Series & Table Data:** Visualize time-based data or display results in
23+
tabular format for various Grafana panels.
24+
- **Rich Language Support** IntelliSense for MongoDB query in editor: Code completion, Hover, CodeLense, etc.
2325
- **Live Streaming Support** (Experimental) Watch [MongoDB Change Streams](https://www.mongodb.com/docs/manual/changeStreams/) to monitor MongoDB operations and data in real-time.
2426
- **MongoDB Atlas Support** Connect to MongoDB Atlas Services.
2527
- **Grafana Alerting Support** Set up alerting rules based on query result

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mongodb-datasource",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"scripts": {
55
"build": "webpack -c ./webpack.config.ts --env production",
66
"dev": "webpack -w -c ./webpack.config.ts --env development",

src/editor/autocomplete.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CompletionProvider implements monacoTypes.languages.CompletionItemProvider
4242

4343
const stageSuggestions: languages.CompletionItem[] = STAGE_OPERATORS.map((stage) => {
4444
// Add double quotation marks
45-
const snippet = stage.snippet.replace(/(\s*)([a-zA-Z]+)\s*: /g, '$1"$2": ');
45+
const snippet = stage.snippet.replace(/(\s*)([_a-zA-Z]+)\s*: /g, '$1"$2": ');
4646
return {
4747
label: `"${stage.name}"`,
4848
kind: languages.CompletionItemKind.Function,
@@ -51,7 +51,8 @@ class CompletionProvider implements monacoTypes.languages.CompletionItemProvider
5151
detail: stage.meta,
5252
documentation: stage.description,
5353
insertTextRules: languages.CompletionItemInsertTextRule.InsertAsSnippet,
54-
}});
54+
}
55+
});
5556

5657
const expressionSuggestions: languages.CompletionItem[] = [...EXPRESSION_OPERATORS, ...ACCUMULATORS, ...CONVERSION_OPERATORS, ...QUERY_OPERATORS].map((expression) => ({
5758
label: `"${expression.name}"`,

static/screenshot.gif

3.8 MB
Loading

0 commit comments

Comments
 (0)