Suppose if the data in db as shown below:
{“title”:“The Adventures of Tom Thumb & Thumbelina”,“director”:“Niccolo Bris”,“actors”:[“Lonni Fulger”,“Benedetto Jeandeau”,“Sylvester Argyle”],“release_year”:{“$date”:“1999-09-09T11:50:02.000Z”},“genres”:[“Musical”],“gross”:1015338,“runtime_min”:60,“ratings”:{“soft_avocados”:12,“mndb”:7,“votes”:2014}}
How to read ratings->soft_avocados and actors array element using mongocxx driver?
How to check if element/array/object exists or not using mongocxx?
Where can I find the example code snippets about different bson types.
Will be really helpful if someone comes up with a solution.