We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ec3de commit 81ac84bCopy full SHA for 81ac84b
src/collections/client.ts
@@ -158,8 +158,10 @@ export class AstraDB extends Client {
158
constructor(...args: any[]) {
159
// token: string, path: string
160
if (args.length === 2) {
161
- const keyspaceName = getKeyspaceName(args[1]);
162
- super(args[1], keyspaceName, { isAstra: true, applicationToken: args[0] });
+ let endpoint = args[1];
+ endpoint += "/api/json/v1";
163
+ endpoint += "/default_keyspace";
164
+ super(endpoint, "default_keyspace", { isAstra: true, applicationToken: args[0] });
165
} else {
166
// token: string, dbId: string, region: string, keyspace?: string
167
const keyspaceName = args[3] || "default_keyspace";
0 commit comments