From 9361312265a277b33ef8feae3740641020167c74 Mon Sep 17 00:00:00 2001 From: SilasMarvin <19626586+SilasMarvin@users.noreply.github.com> Date: Fri, 25 Aug 2023 10:08:35 -0700 Subject: [PATCH] Updated docs --- pgml-sdks/rust/pgml/javascript/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pgml-sdks/rust/pgml/javascript/README.md b/pgml-sdks/rust/pgml/javascript/README.md index bedc127bc..a940094c1 100644 --- a/pgml-sdks/rust/pgml/javascript/README.md +++ b/pgml-sdks/rust/pgml/javascript/README.md @@ -76,7 +76,7 @@ Once you have the JavaScript SDK installed, you can use the following sample cod const pgml = require("pgml"); const main = async () => { - collection = pgml.newCollection("my_javascript_collection"); + const collection = pgml.newCollection("my_javascript_collection"); ``` **Explanation:** @@ -199,12 +199,12 @@ By default, collections will read and write to the database specified by `DATABA **Create a Collection that uses the default `DATABASE_URL` environment variable.** ```javascript -collection = pgml.newCollection("test_collection") +const collection = pgml.newCollection("test_collection") ``` **Create a Collection that reads from a different database than that set by the environment variable `DATABASE_URL`.** ```javascript -collection = pgml.newCollection("test_collection", CUSTOM_DATABASE_URL) +const collection = pgml.newCollection("test_collection", CUSTOM_DATABASE_URL) ``` ### Upserting Documents
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: