diff --git a/usage/use-case-examples/high-performance-diffs.mdx b/usage/use-case-examples/high-performance-diffs.mdx index ff54ed57..d4772a0e 100644 --- a/usage/use-case-examples/high-performance-diffs.mdx +++ b/usage/use-case-examples/high-performance-diffs.mdx @@ -70,7 +70,7 @@ const stop = await db.triggers.trackTableDiff({ when: { INSERT: sanitizeSQL`json_extract(NEW.data, '$.list_id') = ${firstList.id}` }, onChange: async (context) => { // // Fetches the todo records that were inserted during this diff - const newTodos = await context.getAll(/* sql */ ` + const newTodos = await context.withDiff(/* sql */ ` SELECT todos.* FROM DIFF JOIN todos ON DIFF.id = todos.id