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 b76805e commit 8f35e31Copy full SHA for 8f35e31
readme.md
@@ -359,6 +359,19 @@ db.collections.describe(collectionPath)
359
db.collections.read(collectionPath)
360
```
361
362
+#### exists
363
+
364
+This function checks if the collection exists.
365
366
+- returns `true` if the collection exists and the current user can open it
367
+- returns `false` if the collection does not exist
368
+- throws an exception if the collection exists but the current user cannot
369
+ access it
370
371
+```js
372
+db.collections.exists(collectionPath)
373
+```
374
375
#### existsAndCanOpen
376
377
This function checks if the collection exists and if it does, if the current user can access it.
0 commit comments