diff --git a/reference/rest/querying.md b/reference/rest/querying.md index e8c564c7..b05a19c0 100644 --- a/reference/rest/querying.md +++ b/reference/rest/querying.md @@ -225,7 +225,7 @@ type Product @table @export { id: Long @primaryKey name: String resellerIds: [Long] @indexed - resellers: [Reseller] @relationship(from: "resellerId") + resellers: [Reseller] @relationship(from: "resellerIds") } ``` diff --git a/release-notes/v5-lincoln/v5-migration.md b/release-notes/v5-lincoln/v5-migration.md index ded96441..9862c556 100644 --- a/release-notes/v5-lincoln/v5-migration.md +++ b/release-notes/v5-lincoln/v5-migration.md @@ -73,7 +73,7 @@ class MyResource { // this function is within a transaction, with a consistent snapshot of data that won't change, but previous code could // call Table.get without a context, it would not use the current transaction and would instead get the latest data while ((await Table.get(target)).status !== 'ready') { - delay(100); + await delay(100); } return Table.get(target); } @@ -93,7 +93,7 @@ class MyResource { // now we can call Table.get and it will read the latest data. // we could also explicitly start a new transaction here for each get: while ((await transaction(() => Table.get(target))).status !== 'ready') { - delay(100); + await delay(100); } return Table.get(target); }