@@ -76,7 +76,7 @@ Once you have the JavaScript SDK installed, you can use the following sample cod
7676const pgml = require (" pgml" );
7777
7878const main = async ()=> {
79- collection= pgml .newCollection (" my_javascript_collection" );
79+ const collection = 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+ const collection = 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+ const collection = pgml .newCollection (" test_collection" ,CUSTOM_DATABASE_URL )
208208` ` `
209209
210210### Upserting Documents