Is this possible with functions like “mongoc_collection_find” ? How do I need to set the arguments?
Hi Jaed,
To get started, I would recommend to follow the MongoDB C Driver Tutorial. Especially on the section Finding a Document.
The tutorial contains an example as below:
// Look for all documents matching {"hello" : "world"}.
query = bson_new ();
BSON_APPEND_UTF8 (query, "hello", "world");
cursor = mongoc_collection_find_with_opts (collection, query, NULL, NULL);
Regards,
Wan.