Documentation

LookupInAllReplicasOptions
in package

Table of Contents

$readPreference  : string
$timeoutMilliseconds  : int|null
$transcoder  : Transcoder
$withExpiry  : bool|null
__construct()  : mixed
build()  : LookupInAllReplicasOptions
Static helper to keep code more readable
getTranscoder()  : Transcoder
Returns associated transcoder.
readPreference()  : LookupInAllReplicasOptions
Choose how the replica nodes will be selected. By default, it has no preference and will select any available replica, but it is possible to prioritize or restrict to only nodes in local server group
timeout()  : LookupInAllReplicasOptions
Sets the operation timeout in milliseconds.
transcoder()  : LookupInAllReplicasOptions
Associate custom transcoder with the request.
withExpiry()  : LookupInAllReplicasOptions
Sets whether to include document expiry with the document content.

Properties

Methods

withExpiry()

Sets whether to include document expiry with the document content.

public withExpiry(bool $fetchExpiry) : LookupInAllReplicasOptions

When used this option will add one extra subdocument path into the LookupIn operation. This can cause the set of subdocument paths to exceed the maximum number (16) of paths allowed in a subdocument operation.

Parameters
$fetchExpiry : bool

whether to include document expiry

Tags
since
4.1.6
Return values
LookupInAllReplicasOptions

        

Search results