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 6b54fa6 commit 205fb1dCopy full SHA for 205fb1d
src/db.ts
@@ -435,9 +435,9 @@ export class Db {
435
*/
436
async collections(options?: ListCollectionsOptions): Promise<Collection[]> {
437
options = resolveOptions(this, options);
438
- const documents = await this.listCollections({}, { ...options, nameOnly: true }).toArray();
+ const collections = await this.listCollections({}, { ...options, nameOnly: true }).toArray();
439
440
- return documents
+ return collections
441
.filter(
442
// Filter collections removing any illegal ones
443
({ name }) => !name.includes('$')
0 commit comments