Skip to content

Commit

Permalink
FIX: tables.mdx (#311)
Browse files Browse the repository at this point in the history
* FIX: tables.mdx

Fix an issue in an example of the findRecords section where the limit condition of findRecords was just a reference to an integer variable rather than a key "limit" referring to the integer variable

* Update tables.mdx

Fix the example for getRecords which was incomplete and useless as-is. Used the video as reference.

---------

Co-authored-by: Patrick Hamelin <[email protected]>
  • Loading branch information
savicbo and ptrckbp authored Jun 7, 2024
1 parent f8a3e20 commit de5eb81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/cloud/studio/tables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,13 @@ const limit = 10
const startRow = 0

workflow.records = await DataTable1.findRecords({
limit,
limit: limit,
offset: startRow,
})

// Checking the second page
const secondPage = await Data1Table.findRecords({
limit,
limit: limit,
filter: AI`everything`,
offset: startRow + limit,
})
Expand Down Expand Up @@ -651,7 +651,7 @@ You can use the `getRecord` function to retrieve a specific record from a table
```javascript // Get a record from the table and store it in a variable const data = await Data1Table.getRecord(1)

// 1 is the record ID and User is the variable name
workflow.User = data
workflow.User = await.Data1Table.getRecord(1)

````

Expand Down

0 comments on commit de5eb81

Please sign in to comment.