datastax / astra-db-ts

Typescript client for Astra DB Vector
https://npmjs.com/@datastax/astra-db-ts
Apache License 2.0
15 stars 6 forks source link

change `collection` to `createCollection` in README sample code #7

Closed hemidactylus closed 11 months ago

hemidactylus commented 11 months ago

The lines in the README sample code

// Create a collection
const collection = await astraDb.collection(COLLECTION_NAME);

seem to be incorrect, as that method does not create a collection rather returns a reference to an existing one.

Creating a collection, in my understanding, is done through createCollection with the (possible, but required for vector coll.s) addition of some parameters.

alexleventer commented 11 months ago

This is resolved, closing