1MONGOC_COLLECTION_COMMAND(3)   MongoDB C Driver   MONGOC_COLLECTION_COMMAND(3)
2
3
4

NAME

6       mongoc_collection_command - mongoc_collection_command()
7

SYNOPSIS

9          mongoc_cursor_t *
10          mongoc_collection_command (mongoc_collection_t *collection,
11                                     mongoc_query_flags_t flags,
12                                     uint32_t skip,
13                                     uint32_t limit,
14                                     uint32_t batch_size,
15                                     const bson_t *command,
16                                     const bson_t *fields,
17                                     const mongoc_read_prefs_t *read_prefs)
18             BSON_GNUC_WARN_UNUSED_RESULT;
19
20       This  function  is superseded by mongoc_collection_command_with_opts(),
21       mongoc_collection_read_command_with_opts(),              mongoc_collec‐
22       tion_write_command_with_opts(),  and  mongoc_collection_read_write_com‐
23       mand_with_opts().
24

PARAMETERS

26       · collection: A mongoc_collection_t.
27
28       · flags: A mongoc_query_flags_t.
29
30       · skip: A uint32_t with the number of documents to skip or zero.
31
32       · limit: A uint32_t with the max number of documents to return or zero.
33
34       · batch_size: A uint32_t with the number of documents in each batch  or
35         zero. Default is 100.
36
37       · command: A bson_t containing the command to execute.
38
39       · fields:  A  bson_t  containing  the fields to return or NULL. Not all
40         commands support this option.
41
42       · read_prefs: An optional mongoc_read_prefs_t. Otherwise,  the  command
43         uses mode MONGOC_READ_PRIMARY.
44

RETURNS

46       A mongoc_cursor_t.
47
48       The cursor should be freed with mongoc_cursor_destroy().
49

AUTHOR

51       MongoDB, Inc
52
54       2017-present, MongoDB, Inc
55
56
57
58
591.14.0                           Feb 22, 2019     MONGOC_COLLECTION_COMMAND(3)
Impressum