You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: embed screenshots and add parameterized query example
- Add 8 screenshots from ToolJet docs to the tutorial directory
- Embed screenshots at appropriate steps: connection config, operations
dropdown, SQL++ query, Get/Create/Update/Delete Document, FTS Search
- Screenshots are co-located with the markdown file per repo convention
Copy file name to clipboardExpand all lines: tutorial/markdown/connectors/tooljet/tooljet-couchbase-airline-dashboard.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,8 @@ Now connect ToolJet to your Couchbase cluster:
200
200
5. Click **Test Connection** — you should see a green "Connection successful" message
201
201
6. Click **Save**
202
202
203
+

204
+
203
205
## Step 3: Create a SQL++ Query to List Airlines
204
206
205
207
Let's fetch airline data from the `travel-sample` dataset.
@@ -208,7 +210,10 @@ Let's fetch airline data from the `travel-sample` dataset.
208
210
2. In the bottom panel, click **+ Add** → **Query** → select your **Couchbase** data source
209
211
3. Name the query `listAirlines`
210
212
4. Configure the query:
211
-
-**Operation**: Select **Query** from the dropdown
213
+
-**Operation**: Select **Query** from the dropdown (see all available operations below)
214
+
215
+

216
+
212
217
-**SQL++ Query**: Enter the following:
213
218
214
219
```sql
@@ -220,6 +225,8 @@ LIMIT 50
220
225
221
226
5. Click **Run** to test the query
222
227
228
+

229
+
223
230
You should see results in the preview panel — a list of airlines with their names, countries, and callsigns.
224
231
225
232
> **How it works**: This SQL++ query runs against the `airline` collection inside the `inventory` scope of the `travel-sample` bucket. `META().id` gives us the document ID, which we'll need for CRUD operations later.
@@ -280,6 +287,8 @@ Let's add the ability to view a single airline's full document when a user click

291
+
283
292
2. Drag a **Modal** component onto the canvas and add **Text** components inside it to display:
284
293
-`{{queries.getAirline.data.name}}` — Airline name
285
294
-`{{queries.getAirline.data.country}}` — Country
@@ -324,6 +333,8 @@ Now when you click any airline row, it fetches the full document and displays it
324
333
}
325
334
```
326
335
336
+

337
+
327
338
4. Wire it up:
328
339
- "Add Airline" button → **Show modal** (the creation form modal)
329
340
- "Create" button inside modal → **Run query**`createAirline`, then **Run query**`listAirlines` (to refresh the table), then **Hide modal**
@@ -358,6 +369,8 @@ Test it: Click "Add Airline", fill in the form, click "Create". The new airline
358
369
}
359
370
```
360
371
372
+

373
+
361
374
4. Wire the "Save" button to: **Run query**`updateAirline` → **Run query**`listAirlines` → **Hide modal**
362
375
363
376
> **Important**: The Update operation performs a **full document replacement** (HTTP PUT), not a partial update. Make sure your document JSON includes all fields, not just the ones you changed.
@@ -373,6 +386,8 @@ Test it: Click "Add Airline", fill in the form, click "Create". The new airline
0 commit comments