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
12 Create a new mongoc_matcher_t using the query specification provided.
13
15 WARNING:
16 mongoc_matcher_t is deprecated and will be removed in version 2.0.
17
19 • query: A bson_t.
20
21 • error: An optional location for a bson_error_t or NULL.
22
24 Errors are propagated via the error parameter.
25
27 A newly allocated mongoc_matcher_t that should be freed with mon‐
28 goc_matcher_destroy() when no longer in use. Upon failure, NULL is re‐
29 turned and error is set. This could happen if query contains an invalid
30 query specification.
31
33 MongoDB, Inc
34
36 2017-present, MongoDB, Inc
37
38
39
40
411.17.6 Jun 03, 2021 MONGOC_MATCHER_NEW(3)