I wanna update a document with such a updator(s json string):
{"$inc": {"ref": 1}}
And I'm using libbson to construct a bson object from that,while the bson_new_from_json
always failed.However,the $set
operator is ok,what's wrong with the $inc
operator?