77 with_expiry_ = return_expiry;
96 projections_ = std::move(field_paths);
101 bool with_expiry_{
false };
102 std::vector<std::string> projections_{};
Common options that used by most operations.
Definition common_options.hxx:37
auto self() -> get_options &
Definition common_options.hxx:102
auto build_common_options() const -> built
Definition common_options.hxx:89
Represents result of collection::get.
Definition get_result.hxx:38
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
std::function< void(error, get_result)> get_handler
The signature for the handler of the collection::get() operation.
Definition get_options.hxx:111
Immutable value object representing consistent options.
Definition get_options.hxx:44
const bool with_expiry
Definition get_options.hxx:45
const std::vector< std::string > projections
Definition get_options.hxx:46
Options for collection::get().
Definition get_options.hxx:37
auto build() const -> built
Validates options and returns them as an immutable value.
Definition get_options.hxx:60
auto project(std::vector< std::string > field_paths) -> get_options &
Allows to specify a custom list paths to fetch from the document instead of the whole.
Definition get_options.hxx:94
auto with_expiry(bool return_expiry) -> get_options &
If set to true, the get will fetch the expiry for the document as well and return it as part of the g...
Definition get_options.hxx:75