diff --git a/Couchbase/Bucket.php b/Couchbase/Bucket.php index 54f8ead3..543d5ac9 100644 --- a/Couchbase/Bucket.php +++ b/Couchbase/Bucket.php @@ -121,7 +121,9 @@ public function name(): string * @param string $viewName the view to use for the query * @param ViewOptions|null $options the options to use when executing the query * - * @return ViewResult + * @deprecated Views are deprecated in Couchbase Server 7.0+, and will be removed from a future server version. + * Views are not compatible with the Magma storage engine. Instead of views, use indexes and queries using the + * Index Service (GSI) and the Query Service (SQL++). * @since 4.0.0 */ public function viewQuery(string $designDoc, string $viewName, ?ViewOptions $options = null): ViewResult @@ -152,6 +154,9 @@ public function collections(): CollectionManager * * @return ViewIndexManager * @throws UnsupportedOperationException + * @deprecated Views are deprecated in Couchbase Server 7.0+, and will be removed from a future server version. + * Views are not compatible with the Magma storage engine. Instead of views, use indexes and queries using the + * Index Service (GSI) and the Query Service (SQL++). * @since 4.0.0 */ public function viewIndexes(): ViewIndexManager