LookupInBuilder
class LookupInBuilder (View source)
A builder for subdocument lookups. In order to perform the final set of operations, use the execute() method.
Instances of this builder should be obtained through \Couchbase\Bucket->lookupIn()
Methods
Get a value inside the JSON document.
Get a count of values inside the JSON document.
Check if a value exists inside the document.
Perform several lookup operations inside a single existing JSON document, using a specific timeout
Details
LookupInBuilder
get(string $path, array $options = [])
Get a value inside the JSON document.
LookupInBuilder
getCount(string $path, array $options = [])
Get a count of values inside the JSON document.
This method is only available with Couchbase Server 5.0 and later.
LookupInBuilder
exists(string $path, array $options = [])
Check if a value exists inside the document.
This doesn't transmit the value on the wire if it exists, saving the corresponding byte overhead.
DocumentFragment
execute()
Perform several lookup operations inside a single existing JSON document, using a specific timeout