title: Complex query mongodb c
body: <p>I've created my mongodb query like this > </p>
  
  <pre><code> 86     bson query[1];
   87     bson_init(query);
   88     bson_append_start_object(query, "service.virtual_mach    ine");
   89         bson_append_oid(query,"_id",result);
   90     bson_append_finish_object(query);
   91     bson_finish(query);
  </code></pre>
  
  <p>and i run it using this></p>
  
  <pre><code> 93     bson fields[1];
   94     bson_init(fields);
   95     bson_append_oid(fields, "_id", result);
   96     bson_finish(fields);
   97 
   98     mongo_cursor* cursor = NULL;
   99     cursor = mongo_find(conn, "db.services", query, field    s, 9999,0,0);
  </code></pre>
  
  <p>and if i print the "mongo_cursor_next(cursor)" method i got a "-1" (ERROR), i want to know, what's the error in my query.</p>
  
  <p>Thank you in advance.</p>