I have this rethinkDB query which basically returns the documents which "basicConstraints" fields that start with "CA:FA".
However in some of my documents the "basicConstraints" field does not exist.
q = r.db('scanafi').table(active_table) \
.concat_map(lambda doc: doc["certificates"]\
.concat_map(lambda x: x["parsed_certificate"]["X509 extensions"])\
.filter(lambda x: x["basicConstraints"]
.match("^CA:FA"))) \
.run()
How can I also include all of the documents which contain this missing field in my query?