From b5da581b84d484624cd3a17a64fcc94fa5bab52e Mon Sep 17 00:00:00 2001 From: wingbot <109207340+monadabot@users.noreply.github.com> Date: Tue, 12 Sep 2023 18:06:31 +0300 Subject: [PATCH] feat(docs): update docs (#604) feat(docs): update docs Updates the Wing docs. See details in [workflow run]. [Workflow Run]: https://github.com/winglang/docsite/actions/runs/6161299635 ------ *Automatically created via the "update-docs" workflow* --- .../04-standard-library/06-ex/api-reference.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/versioned_docs/version-latest/04-standard-library/06-ex/api-reference.md b/versioned_docs/version-latest/04-standard-library/06-ex/api-reference.md index f8590169c..f5510e8fc 100644 --- a/versioned_docs/version-latest/04-standard-library/06-ex/api-reference.md +++ b/versioned_docs/version-latest/04-standard-library/06-ex/api-reference.md @@ -278,6 +278,7 @@ new ex.Table(props: TableProps); | get | Get a row from the table, by primary key. | | insert | Insert a row into the table. | | list | List all rows in the table. | +| tryGet | Get a row from the table if exists, by primary key. | | update | Update a row in the table. | | upsert | Insert a row into the table if it doesn't exist, otherwise update it. | @@ -367,6 +368,22 @@ inflight list(): MutArray List all rows in the table. +##### `tryGet` + +```wing +inflight tryGet(key: str): Json +``` + +Get a row from the table if exists, by primary key. + +###### `key`Required + +- *Type:* str + +primary key to search. + +--- + ##### `update` ```wing