Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita7d7fca

Browse files
authored
Updated docs (#950)
1 parent36ee1bf commita7d7fca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎pgml-sdks/rust/pgml/javascript/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Once you have the JavaScript SDK installed, you can use the following sample cod
7676
constpgml=require("pgml");
7777

7878
constmain=async ()=> {
79-
collection=pgml.newCollection("my_javascript_collection");
79+
constcollection=pgml.newCollection("my_javascript_collection");
8080
```
8181
8282
**Explanation:**
@@ -199,12 +199,12 @@ By default, collections will read and write to the database specified by `DATABA
199199
200200
**Create a Collection that uses the default`DATABASE_URL` environment variable.**
201201
```javascript
202-
collection=pgml.newCollection("test_collection")
202+
constcollection=pgml.newCollection("test_collection")
203203
```
204204
205205
**Create a Collection that reads from a different database than that set by the environment variable`DATABASE_URL`.**
206206
```javascript
207-
collection=pgml.newCollection("test_collection",CUSTOM_DATABASE_URL)
207+
constcollection=pgml.newCollection("test_collection",CUSTOM_DATABASE_URL)
208208
```
209209
210210
### Upserting Documents

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp