How to refer to sub field in mongodb pipeline when the filed name includes "."
I defined following pipeline in Python. I hit an issue when a label includes . like "1.2.3". labels.{label} becomes labels.1.2.3 $labels.{k} becomes $labels.1.2.3 pipeline = [ { "$match": { "$and": [ {"deleted": {"$ne": True}}, { "$or": [ {f"labels.{label}": {"$exists": True}}…