Skip to content

Commit 4edb1ac

Browse files
authored
Update README.md
1 parent 3d49d83 commit 4edb1ac

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
```typescript
66
import { AstraDB } from "@datastax/astra-db-ts";
7+
8+
const { TOKEN, DATABASE_ID, REGION, COLLECTION_NAME } = process.env;
9+
710
const astraDb = new AstraDB(TOKEN, DATABASE_ID, REGION);
8-
const collection = await astraDb.collection("events");
11+
const collection = await astraDb.collection(COLLECTION_NAME);
912
const results = await collection.countDocuments();
10-
```
13+
```

0 commit comments

Comments
 (0)