We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ba31dc commit cefc234Copy full SHA for cefc234
1 file changed
src/Endpoints/Collections.php
@@ -64,6 +64,19 @@ public function info(): Response
64
);
65
}
66
67
+ /**
68
+ * # Collection exists
69
+ * Checks whether the specified collection exists.
70
+ *
71
+ * @throws InvalidArgumentException
72
+ */
73
+ public function exists(): Response
74
+ {
75
+ return $this->client->execute(
76
+ $this->createRequest('GET', '/collections/' . $this->getCollectionName(). '/exists')
77
+ );
78
+ }
79
+
80
/**
81
* # Delete collection
82
* Drop collection and all associated data
@@ -121,4 +134,4 @@ public function cluster(): Cluster
121
134
{
122
135
return (new Cluster($this->client))->setCollectionName($this->collectionName);
123
136
124
-}
137
+}
0 commit comments