From de5eb8175d051b7444ccf1ba109aaf8bb4a89086 Mon Sep 17 00:00:00 2001 From: Bojan Savic <61340171+savicbo@users.noreply.github.com> Date: Fri, 7 Jun 2024 13:37:04 -0400 Subject: [PATCH] FIX: tables.mdx (#311) * 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 <87815239+ptrckbp@users.noreply.github.com> --- pages/cloud/studio/tables.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/cloud/studio/tables.mdx b/pages/cloud/studio/tables.mdx index e1e737ca..591e63af 100644 --- a/pages/cloud/studio/tables.mdx +++ b/pages/cloud/studio/tables.mdx @@ -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, }) @@ -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) ````