1MONGOC_MATCHER_NEW(3) libmongoc MONGOC_MATCHER_NEW(3)
2
3
4
6 mongoc_matcher_new - mongoc_matcher_new()
7
9 mongoc_matcher_t *
10 mongoc_matcher_new (const bson_t *query, bson_error_t *error)
11 BSON_GNUC_WARN_UNUSED_RESULT BSON_GNUC_DEPRECATED;
12
13 Create a new mongoc_matcher_t using the query specification provided.
14
16 WARNING:
17 mongoc_matcher_t is deprecated and will be removed in version 2.0.
18
20 • query: A bson_t.
21
22 • error: An optional location for a bson_error_t or NULL.
23
25 Errors are propagated via the error parameter.
26
28 A newly allocated mongoc_matcher_t that should be freed with mon‐
29 goc_matcher_destroy() when no longer in use. Upon failure, NULL is re‐
30 turned and error is set. This could happen if query contains an invalid
31 query specification.
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.20.0 Nov 18, 2021 MONGOC_MATCHER_NEW(3)