<private> new LookupInBuilder()
- Since:
-
- 2.1.4 (stability: committed)
Methods
-
execute(callback)
-
Executes this set of lookup operations on the bucket.
Parameters:
Name Type Description callback
- Since:
-
- 2.1.4 (stability: committed)
-
exists(path [, options])
-
Similar to get(), but does not actually retrieve the value from the server. This may save bandwidth if you only need to check for the existence of a path (without caring for its content). You can check the status of this operation by using .content (and ignoring the value) or .exists()
Parameters:
Name Type Argument Description path
string options
Object <optional>
Properties
Name Type Argument Description xattr
boolean <optional>
xattrMacro
boolean <optional>
- Since:
-
- 2.1.4 (stability: committed)
Returns:
- Type
- LookupInBuilder
-
get(path [, options])
-
Indicate a path to be retrieved from the document. The value of the path can later be retrieved (after .execute()) using the content or contentByIndex method. The path syntax follows N1QL's path syntax (e.g.
foo.bar.baz
).Parameters:
Name Type Argument Description path
string options
Object <optional>
Properties
Name Type Argument Description xattr
boolean <optional>
xattrMacro
boolean <optional>
- Since:
-
- 2.1.4 (stability: committed)
Returns:
- Type
- LookupInBuilder
-
getCount(path [, options])
-
Indicate a path to have its element count retrieved from the document. The value of the path can later be retrieved (after .execute()) using the content or contentByIndex method. The path syntax follows N1QL's path syntax (e.g.
foo.bar.baz
).Parameters:
Name Type Argument Description path
string options
Object <optional>
Properties
Name Type Argument Description xattr
boolean <optional>
xattrMacro
boolean <optional>
- Since:
-
- 2.3.4 (stability: committed)
Returns:
- Type
- LookupInBuilder