17#include <bsoncxx/document/view_or_value.hpp>
18#include <bsoncxx/stdx/optional.hpp>
19#include <mongocxx/pipeline.hpp>
20#include <mongocxx/stdx.hpp>
22#include <mongocxx/config/prelude.hpp>
25MONGOCXX_INLINE_NAMESPACE_BEGIN
61 const stdx::optional<bsoncxx::document::view_or_value>&
collation()
const;
77 const stdx::optional<class pipeline>&
pipeline()
const;
98 stdx::optional<bsoncxx::document::view_or_value> _collation;
99 stdx::optional<class pipeline> _pipeline;
103 return to_document();
107MONGOCXX_INLINE_NAMESPACE_END
110#include <mongocxx/config/postlude.hpp>
A read-only BSON document that owns its underlying buffer.
Definition value.hpp:33
Class representing the optional arguments to a view creation operation.
Definition create_view.hpp:34
create_view & collation(bsoncxx::document::view_or_value collation)
Sets the default collation for this view.
const stdx::optional< class pipeline > & pipeline() const
Gets the pipeline that will be used to compute this view.
create_view & pipeline(pipeline pipeline)
Sets the pipeline that will be used to compute this view.
bsoncxx::document::value to_document() const
Return a bson document representing the options set on this object.
const stdx::optional< bsoncxx::document::view_or_value > & collation() const
Gets the default collation for this view.
Class representing a MongoDB aggregation pipeline.
Definition pipeline.hpp:35